`HTTP_HOST` incorrectly computed via CLI when using custom ports #2588

dhensby opened this Issue Oct 23, 2013 · 0 comments


None yet

2 participants

dhensby commented Oct 23, 2013

When computing the $_SERVER['HTTP_HOST'] value via the cli interface for SS and using a custom port, the port is ignored.

Given this example:

http://localhost:8080 accessed via browser:

$_SERVER['HTTP_HOST'] == 'localhost:8080'

Via the CLI:

$_SERVER['HTTP_HOST'] == 'localhost'

This is the case when

$_FILE_TO_URL_MAPPING['/var/www/html/'] = 'http://localhost:8080/';
@simonwelsh simonwelsh added the 3.1 label Mar 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment