diff --git a/eiblog.conf b/eiblog.conf index 6f52fca..e7d9ff8 100644 --- a/eiblog.conf +++ b/eiblog.conf @@ -17,7 +17,7 @@ server { server_tokens off; location / { - rewrite ^/(.*)$ https://$host/$1 permanent; + rewrite ^/(.*)$ https://deepzz.com/$1 permanent; } } @@ -61,6 +61,10 @@ server { root /usr/share/nginx/html; expires 1d; } + + if ($host != 'deepzz.com' ) { + rewrite ^/(.*)$ https://deepzz.com/$1 permanent; + } # proxy setting proxy_http_version 1.1;