Update default

master
Edwin Lyon 4 years ago committed by GitHub
parent 6d4f13b63c
commit 25527422d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      nginx/default

@ -1,7 +1,10 @@
server {
listen 80;
listen [::]:80;
server_name example.com www.example.com mail.example.com autodiscover.* autoconfig.*;
listen 80 default_server;
listen [::]:80 default_sever;
server_name _;
root /var/www/html/public;
include /etc/nginx/snippets/letsencrpt.conf;
if ($host = autoconfig.example.com) {
return 301 https://$host$request_uri;
@ -59,7 +62,7 @@ server {
include /etc/nginx/snippets/security.conf;
root /var/www/example.com/public;
root /var/www/html/public;
index index.html index.htm;
}

Loading…
Cancel
Save