我有一个ubuntu服务器。
我已经有了nginx和一些有用的页面。
我想在/博客路径上添加wordpress
我使用此设置安装了wordpresshttps://ubuntu.com/tutorials/install-and-configure-wordpress#1-overview
(我没有开始第7步,因为我无法显示页面)
通过设置wordpress生活在/srv/www/wordpress
我看到索引的地方。php和其他一切
我确实修改了我的nginx conf文件
server {
root /var/www/example;
server_name example.com www.example.com;
index index.html index.htm index.nginx-debian.html;
...
location / {
try_files $uri $uri/ =404;
}
location ^~ /blog {
root /srv/www/wordpress;
index index.php;
try_files $uri $uri/ /index.php?$args;
location ~ \\.php$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_pass 127.0.0.1:8090;
}
}
...
新部件为location ^~ /blog ...
我不确定它应该是什么样子。现在,如果我去举个例子的话。浏览器提供我下载一些文件。(这是一个名为“download”的简短php文件)
Thx是否有任何建议