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

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

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