corpusslayer/server_deploy_config/corpusslayer-com-http.conf

27 lines
562 B
Plaintext
Raw Permalink Normal View History

2017-12-07 20:31:49 +00:00
server {
listen 80;
listen [::]:80;
2018-04-26 16:13:51 +00:00
server_name corpusslayer.com *.corpusslayer.com;
2017-12-07 20:31:49 +00:00
include /etc/nginx/snippets/acme.conf;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
2018-04-26 16:13:51 +00:00
server_name corpusslayer.com ~^(?!the\.)corpusslayer\.com$;
2017-12-07 20:31:49 +00:00
2017-12-07 21:23:41 +00:00
root /var/www/corpusslayer/html;
2017-12-07 20:31:49 +00:00
location / {
2017-12-07 22:12:57 +00:00
index index.html index.htm root.html root.htm .html .htm index.php .php;
2017-12-07 20:31:49 +00:00
}
2017-12-07 21:23:41 +00:00
2017-12-07 20:31:49 +00:00
include /etc/nginx/snippets/tlsgzip.conf;
}