cambios phpçç

pro/0.0.1
fanta 4 years ago
parent 998ce449c1
commit 43d156a302

@ -1,8 +1,3 @@
upstream php {
server unix:/tmp/php-cgi.socket;
server 127.0.0.1:9000;
}
server { server {
server_name domain.tld; server_name domain.tld;
root /var/www/wordpress; root /var/www/wordpress;
@ -11,6 +6,8 @@ server {
access_log /var/log/nginx/"$server_name"-access.log; access_log /var/log/nginx/"$server_name"-access.log;
error_log /var/log/nginx/"$server_name"-error.log; error_log /var/log/nginx/"$server_name"-error.log;
server_tokens off;
location = /favicon.ico { location = /favicon.ico {
log_not_found off; log_not_found off;
access_log off; access_log off;
@ -27,12 +24,12 @@ server {
} }
location ~ \.php$ { location ~ \.php$ {
#NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini try_files $uri =404;
fastcgi_index index.php;
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
include fastcgi_params; include fastcgi_params;
fastcgi_intercept_errors on;
fastcgi_pass php;
#The following parameter can be also included in fastcgi_params file
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
} }
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {

Loading…
Cancel
Save