31 lines
730 B
Plaintext
31 lines
730 B
Plaintext
|
include php-fpm;
|
||
|
|
||
|
server {
|
||
|
server_name vizzare.com www.vizzare.com;
|
||
|
listen 202.61.255.100:443 ssl;
|
||
|
listen [2a03:4000:55:d1d::]:443 ssl;
|
||
|
root /mnt/gluster01/web/vizzare;
|
||
|
index index.php;
|
||
|
|
||
|
ssl_certificate /etc/ssl/vizzare/fullchain.pem;
|
||
|
ssl_certificate_key /etc/ssl/vizzare/private/privkey.pem;
|
||
|
|
||
|
location / {
|
||
|
try_files $uri $uri/ /index.php?$args;
|
||
|
}
|
||
|
|
||
|
location ~ \.php$ {
|
||
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||
|
include fastcgi_params;
|
||
|
fastcgi_intercept_errors on;
|
||
|
fastcgi_pass php-fpm;
|
||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||
|
}
|
||
|
|
||
|
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
|
||
|
expires max;
|
||
|
log_not_found off;
|
||
|
}
|
||
|
|
||
|
}
|