NginXConfigDiff

Created Diff never expires
15 removals
26 lines
19 additions
29 lines
server {
server {
server_name _;
listen 80;
return 301 https://$host$request_uri;
listen [::]:80;
server_name contfix.co.il www.contfix.co.il;


root /var/www/html;
ssl_certificate /etc/nginx/conf.d/ssl/contfix.co.il.crt;
index index.php index.html index.htm;
ssl_certificate_key /etc/nginx/conf.d/ssl/contfix.co.il.key;
ssl_dhparam /etc/nginx/conf.d/ssl/dhparam.pem;

root /var/www/html/contfix.co.il;

location / {
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$args;
}


location ~ \.php$ {
location ~ \.php$ {
include snippets/fastcgi-php.conf;
include snippets/fastcgi-php.conf;
fastcgi_pass 127.0.0.1:9000;
fastcgi_pass 127.0.0.1:9000;
}
}


location / {
location ~* \.(jpg|jpeg|png|gif|ico|css|js|ttf|woff)$ {
try_files $uri $uri/ =404;
expires 365d;
}
}


location ~ /\.ht {
location ~* \.(pdf)$ {
deny all;
expires 30d;
}
}

# notes {
# 443 ssl http2;
# [::]:443 ssl http2;
# }
}
}