I am currently running a website in nginx / 1.6.3 on centOS7
Everything works smoothly, with the exception of some redirects.
This is what my .conf file looks like:
server { listen 443 ssl spdy default deferred; server_name .example.com; ... more configs } server { listen 80; server_name .example.com; return 301 https://example.com$request_uri; }
I would like to execute the following scripts:
user visits in browser | this should happen ------------------------------------|------------------------------------- https://example.com$request_uri | Just deliver content https://*.example.com$request_uri | 301 https://example.com$request_uri https://123.123.123.123$request_uri | 301 https://example.com$request_uri http://example.com$request_uri | 301 https://example.com$request_uri http://*.example.com$request_uri | 301 https://example.com$request_uri http://123.123.123.123$request_uri | 301 https://example.com$request_uri
source share