Giter Club home page Giter Club logo

Comments (7)

dverdin avatar dverdin commented on September 25, 2024

Sorry, no clue about nginx.
However, @racke knows the tool well if I recall correctly.
I'll request a review from him.

from sympa-community.github.io.

ldidry avatar ldidry commented on September 25, 2024

On Debian Stretch, /etc/nginx/fastcgi_params contains

fastcgi_param  SERVER_NAME        $server_name;

Can you tell us what /etc/nginx/fastcgi_params contains on your system?

from sympa-community.github.io.

racke avatar racke commented on September 25, 2024

Yes, the $server_name variable is the correct one.

from sympa-community.github.io.

ikedas avatar ikedas commented on September 25, 2024

That's right also with RPM. I mean /etc/nginx/conf.d/sympa.conf would contain a line to override definition of SERVERNAME in fastcgi_params.

from sympa-community.github.io.

ikedas avatar ikedas commented on September 25, 2024

Side note:

I feel a line

fastcgi_param SERVER_NAME $http_host;

is not a good idea: Client may set arbitrary Host: request field (or no field) and Sympa will trust in it.

$host is determined "in this order of precedence: host name from the request line, or host name from the “Host” request header field, or the server name matching a request" (doc). Additionally, if HTTPS is enabled, nginx gets SNI host name at first (ticket). It looks safer than $http_host for me, but I couldn't be sure.

Another possible way to deteremine virtual hosts using SERVER_NAME (defined as $server_name) is adding multiple server sections. However I feel it is a bit intricate.

from sympa-community.github.io.

racke avatar racke commented on September 25, 2024

Multiple server sections could be an alternative and it wouldn't be that intricate, as you can include the sympa part from a include file (actually I doing it that way). You need other settings depending on the server name in the server section (definitely https://).

from sympa-community.github.io.

ikedas avatar ikedas commented on September 25, 2024

I see my idea is not so hopeful. I close this issue. Thanks for suggestions!

from sympa-community.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.