Nginx Remove Domain from $host -


when http request sent site: mysite.example.com , set:

proxy_set_header host $host  

i mysite.example.com; want "mysite" don't want domain included in host header. there way strip domain host header?

try...

proxy_set_header host "mysite";


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -