laipower/wp-content/upgrade-temp-backup/plugins/w3-total-cache/ini/nginx-standalone-sample-config.conf

22 lines
580 B
Plaintext
Raw Normal View History

2024-03-28 09:40:10 +00:00
server {
listen 80;
server_name yoursite.com;
access_log /var/log/nginx/yoursite.com_access.log;
error_log /var/log/nginx/yoursite.com_error.log debug;
root /var/www/vhosts/yoursite.com;
index index.php;
include /var/www/vhosts/yoursite.com/nginx.conf;
if (!-e $request_filename) {
rewrite (.*) /index.php last;
}
location ~ .php$ {
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}