Add vhost for ultonomy.com.
This commit is contained in:
parent
2af73d2d4e
commit
9766d2ced5
|
@ -293,6 +293,40 @@
|
|||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_pass php;
|
||||
}
|
||||
ultonomy.com.http:
|
||||
- listen *:80
|
||||
- listen [::]:80
|
||||
- server_name ultonomy.com
|
||||
- return 301 "https://$host$request_uri"
|
||||
ultonomy.com.https:
|
||||
- listen *:443 ssl http2
|
||||
- listen [::]:443 ssl http2
|
||||
- server_name ultonomy.com
|
||||
- root "/srv/www/ultonomy.com"
|
||||
- index index.php index.html
|
||||
- access_log "/var/log/nginx/ultonomy.com.access.log"
|
||||
- error_log "/var/log/nginx/ultonomy.com.error.log"
|
||||
- client_max_body_size 10M
|
||||
- ssl_certificate "/etc/ssl/letsencrypt/ultonomy.com.crt"
|
||||
- ssl_certificate_key "/etc/ssl/letsencrypt/ultonomy.com.pem"
|
||||
- ssl_stapling on
|
||||
- resolver [::1] valid=300s
|
||||
- add_header Strict-Transport-Security max-age=31536000
|
||||
- location / {
|
||||
try_files $uri $uri/ /index.php?$args;
|
||||
}
|
||||
- location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
|
||||
expires 24h;
|
||||
}
|
||||
- location ~ \.php$ {
|
||||
try_files $uri =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
include fastcgi_params;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_pass php;
|
||||
}
|
||||
|
||||
nginx_configs:
|
||||
gzip:
|
||||
- gzip on
|
||||
|
|
Loading…
Reference in New Issue