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

Overriding detected server port #60

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Overriding detected server port #60

wants to merge 7 commits into from

Conversation

jcsaaddupuy
Copy link

When hosting Shaarli on a webserver behind a sslh instance, generated urls contains the actual webserver port (based on $_SERVER['PORT']) .

In such a config, the webserver may not be directly reachable from outside and using the detected port isn't relevent, as it will be the one on which sslh run which will be serving pages.

As a workaround I added a global ACTUAL_SERVER_PORT, as you can see here and here which is will be used in the serverUrl function.

In order to be coherent, I also made the RSS/Atom URL relatives (like the other ones) by removing the {$feedurl} variable in tpl/includes.html and tpl/page.header.html.

pikzen pushed a commit to pikzen/Shaarli that referenced this pull request Nov 21, 2014
Do not add a tag to the search if it's already being searched for.
 * Fixes shaarli#50
 * Fixes sebsauvage#140
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant