Wordpress Nginx 配置 发表于 2018-11-24 | 分类于 技术 | | 阅读次数: Wordpress Nginx 配置 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748upstream php {server unix:/tmp/php-cgi.socket;server 127.0.0.1:9000;}server {listen 80 default_server;listen [::]:80 default_server;#server_name _;root /opt/www/wordpress1;index index.php;location = /favicon.ico {log_not_found off;access_log off;}location = /robots.txt {allow all;log_not_found off;access_log off;}location / {try_files $uri $uri/ /index.php?$args;}location ~ \.php$ {include fastcgi.conf;fastcgi_intercept_errors on;fastcgi_pass php;fastcgi_buffers 16 16k;fastcgi_buffer_size 32k;}location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {expires max;log_not_found off;}error_page 404 /404.html;location = /40x.html {}error_page 500 502 503 504 /50x.html;location = /50x.html {}} 版权声明:本文为原创,欢迎转载,转载请注明出处,勿用于商业用途!