1
나는 내 Flask 사이트에 Wordpress 블로그를 추가해야합니다. 내가 이런 식으로의 nginx의 설정 작업에 블로그를 배포하려고 :플라스크와 워드 프레스 nginx에서 동일한 도메인에
server {
listen 80;
server_name localhost;
location/{
uwsgi_pass unix:/tmp/site.sock;
include uwsgi_params;
}
location = /blog/ {
alias /var/www/blog/;
index index.php;
try_files $uri $uri/ /blog/index.php?q=$uri?$args;
}
location ~ /blog/.+\.php$ {
root /var/www/;
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
}
# path for static files
location /static/ {
alias /var/www/site/static/;
autoindex on;
expires max;
}
}
하지만 워드 프레스는 나에게 404 페이지 표시 (STANDART하지,이 페이지를 블로그에 expessially되었다 및 워드 프레스 페이지에 포함) 그렇지 않으면, 나는 확인 데이터베이스에 대한 연결이 생성되고 wp_config가 작동합니다. WP 또는 nginx 설정에서 일부 설정을 놓칠 수 있습니까?
문서에 따르면 'alias'와'try_files' [작동하지 않는 오랜 버그가 있습니다 함께] (http://trac.nginx.org/nginx/ticket/97). – Seberius