Skip to content

Instantly share code, notes, and snippets.

@baijian
Created November 14, 2013 09:03
Show Gist options
  • Select an option

  • Save baijian/7463705 to your computer and use it in GitHub Desktop.

Select an option

Save baijian/7463705 to your computer and use it in GitHub Desktop.
* $http_host equals always the HTTP_HOST request header.
* $host equals $http_host, lowercase and without the port number (if present), except when HTTP_HOST is absent or is an empty value. In that case, $host equals the value of the server_name directive of the server which processed the request.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment