Nginx domain jump

Recommended for you: Get network issues from WhatsUp Gold. Not end users.
if ($host != '') {
      rewrite ^/(.*)$  $1 permanent;

The order of multi server_name 2.Nginx virtual host

if ($host != $server_name) {
    rewrite ^/(.*)$ http://$server_name/$1 permanent;

Find the fastcgi_param section in the nginx configuration, modify

fastcgi_param  SERVER_NAME    $server_name;
For the
fastcgi_param  SERVER_NAME    $host;
Detailed address
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Walter at January 12, 2014 - 12:57 AM