wordpress nginx 404
server {
listen 80;
server_name blog.peos.cn uol123.com;
index index.php index.html;
root /alidata/www/uol123;
location ~ .*\.(php|php5)?$
{
fastcgi_pass unix:/tmp/php-cgi.sock;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 1h;
}
#伪静态规则
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}
#include /alidata/server/nginx/conf/rewrite/wordpress.conf;
#access_log /alidata/log/nginx/access/phpwind.log;
}
============ 欢迎各位老板打赏~ ===========
与本文相关的文章
- · vue3+vite+多环境发面到二级目录配置
- · nginx http转https, 不带www转带www
- · wordpress更新需要的目录权限
- · 群晖web station设置wordpress 伪静态
- · nginx主动健康检查负载均衡模块
- · nginx自动切换到手机/PC 网站
- · 使用tengine代替Nginx
- · nginx添加nginx_upstream_check_module
- · nginx上传文件超出默认大小限制,提示:413 Request Entity Too Large
- · nginx反向代理禁用缓存
- · docker nginx
- · 群晖NAS使用webstation搭建wordpress 问题汇总