Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make "http_host" parameter optional #36

Merged
merged 2 commits into from
Aug 12, 2017
Merged

Make "http_host" parameter optional #36

merged 2 commits into from
Aug 12, 2017

Conversation

ikedas
Copy link
Member

@ikedas ikedas commented Aug 3, 2017

In most cases, http_host parameter is duplicate of wwsympa_url (As of 6.2.15, they may be differ only in case that WWSympa is placed behind reverse proxy). That is why this parameter would be optional: If http_host is not specified, value of wwsympa_url would be used.


ToDo: Now its name http_host is inappropriate: It would be better to have new name such as wwsympa_url_local, however, anyone will do it in the future.


Update: Also added new parameter soap_url_local corresponding to soap_url.

@ikedas ikedas added this to the 6.2.20 milestone Aug 3, 2017
@racke
Copy link
Contributor

racke commented Aug 6, 2017

Also it would be more useful to examine the X_FORWARDED_HOST environment variable if we are behind a reverse proxy instead of use a static value from configuration.

@ikedas
Copy link
Member Author

ikedas commented Aug 6, 2017

Also it would be more useful to examine the X_FORWARDED_HOST environment variable if we are behind a reverse proxy instead of use a static value from configuration.

It was disabled at b3348f7 (see get_server_name() and get_http_host() in Sympa::Tools::WWW). My idea at that time was that HTTP_X_HORWARDED_* is not trustworthy (it has no official format and could be forged by client side easily), and should not always be enabled.

If someone feel it useful, option like override_server_name_by_environment_variable might be added.

@racke
Copy link
Contributor

racke commented Aug 7, 2017 via email

@ikedas
Copy link
Member Author

ikedas commented Aug 7, 2017

If you agree, I would open a new issue.

I agree.

(I guess this theme (service behind proxy) is worth spending one chapter in documentation.)

@ikedas ikedas merged commit a142e62 into sympa-community:sympa-6.2 Aug 12, 2017
@ikedas ikedas deleted the deprecate-http_host branch August 12, 2017 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants