我在子目录中安装了WordPress,所以site.com/tips-on-something。
出于某种原因,访问网址时出现404错误。我可以修改什么来使其工作?
location ~ /tips-on-something/(.*)$ {
alias /var/www/some_folder/;
if (!-e $request_filename) {
rewrite ^(.+)$ /index.php last;
break;
}
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_pass fpm_serv;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_index index.php;
}
}