Skip to content
New issue

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

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

Already on GitHub? # to your account

Show the correct URL when OGSpy is installed behind a reverse Proxy #11

Merged
merged 1 commit into from
Oct 4, 2019
Merged

Show the correct URL when OGSpy is installed behind a reverse Proxy #11

merged 1 commit into from
Oct 4, 2019

Conversation

juliogonzalez
Copy link
Contributor

Sadly using PHP_SELF and HTTP_HOST only works when OGspy is served directly by a HTTP server (Apache or whatever else).

This patch adds support to have OGSpy behind a reverse proxy.

Useful, for example, if OGSpy is on a container and HTTPS is provided by the reverse proxy.

As a bonus, the plugin is now able to detect (in mos cases) the protocol. The port is only added to the URL if it's not the standard port for the protocol being used.

@darknoon29 darknoon29 merged commit c3b77fb into OGSteam:develop Oct 4, 2019
darknoon29 pushed a commit that referenced this pull request Nov 14, 2019
This reverts commit c3b77fb, reversing
changes made to 5ae1aaa.
darknoon29 added a commit that referenced this pull request Nov 14, 2019
This reverts commit c3b77fb, reversing
changes made to 5ae1aaa.
darknoon29 added a commit that referenced this pull request Nov 14, 2019
This reverts commit c3b77fb, reversing
changes made to 5ae1aaa.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants