dead23angel / smarty-combine

Combine and minify many JS or CSS to one file
MIT License
19 stars 9 forks source link

Determine base_url based on HTTP_HOST to save port #7

Closed benoertel closed 7 years ago

benoertel commented 7 years ago

When loading resources in debug mode, the HTTP_HOST should be used instead of SERVER_NAME. Besides the port issue, SERVER_NAME is the internal name of the host on the server, this can differ from where the user requested the site from. (i.e. SERVER_NAME is myhost.local, but the user requested myhost.com)