Skip to content

Overriding detected server port#60

Open
jcsaaddupuy wants to merge 7 commits intosebsauvage:masterfrom
jcsaaddupuy:master
Open

Overriding detected server port#60
jcsaaddupuy wants to merge 7 commits intosebsauvage:masterfrom
jcsaaddupuy:master

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.

1 participant