changes to www nginx conf

merge-requests/2/head
Matthew 2021-07-07 17:55:50 -04:00
parent 76476e876c
commit fb5ece74bc
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 20 additions and 4 deletions

View File

@ -9,11 +9,27 @@ server {
root /var/www/wordpress; root /var/www/wordpress;
index index.php; index index.php;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
}
location / { location / {
try_files $uri $uri/ /index.php?$args; try_files $uri $uri/ /index.php?$args;
} }
location ~ \.php$ {
#NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
include fastcgi_params;
fastcgi_intercept_errors on;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;;
#The following parameter can be also included in fastcgi_params file
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
} }