Updated nginx conf to redirect to HTTPS site.
This commit is contained in:
parent
413e655f7a
commit
762a42e227
@ -11,7 +11,7 @@ server {
|
|||||||
error_log /var/log/nginx/ianonavy.error.log;
|
error_log /var/log/nginx/ianonavy.error.log;
|
||||||
|
|
||||||
if ($host != 'ianonavy.com') {
|
if ($host != 'ianonavy.com') {
|
||||||
rewrite ^/(.*)$ http://ianonavy.com/$1 permanent;
|
rewrite ^/(.*)$ https://ianonavy.com/$1 permanent;
|
||||||
}
|
}
|
||||||
|
|
||||||
root /var/sites/ianonavy.com/www;
|
root /var/sites/ianonavy.com/www;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user