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

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

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

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -