虽然这个问题已经被回答了很多次,但仍然不适合我。 我在除了Nginx主页以外的所有页面上都获得了404。Nginx与wordpress 404在所有页面上
我张贴在我的配置如下:
server {
listen 80 ;
listen [::]:80;
root /var/www/html/p/swear;
index index.php index.html index.htm;
server_name skinnybikiniswimwear.org;
location/{
try_files $uri /$uri/ /index.php?args =404;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
try_files $uri /index.php?args =404;
fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
}
我无法找到问题在此配置。
WordPress是安装在:在/ var/www/html等/ P /发誓
感谢
太好了。这工作,但图像不渲染。 – viv
好的问题是https。将尝试修复它。 – viv