how are port number in $host handled if I specify $host:

2018-05-22 Thread SW@EU via nginx
Hi, if I read the Module ngx_http_proxy_module documentation I will find e.g. an possible header rewrite in this way proxy_set_header Host $host:$proxy_port; but what would happens here if $host contains already a port number because the server does not listen on a default port. Maybe the

Valid characters in nginx configuration

2017-03-15 Thread SW@EU via nginx
Hi, there can I find the description of the nginx configuration file syntax e.g. in a BNF like notation. There is defined which characters are allowed in "name" e.g. of an upstream definition? Only ASCII or UTF8, only alpha or alphanumeric and if the last, must it start with alpha. Can I use sp