0
mysite.com/admin/運行[給Django管理面板精]
錯誤:mysite.com/blog/index.php [下載index.php文件,而不是爲它服務]
好心建議一些變化在nginx.config文件中。
WordPress的不是服務器
upstream django {
server unix:///home/ubuntu/web/www.mysite.com/uwsgi-tutorial/mysite/mysite.sock; # for a file socket
}
upstream php{
server 127.0.0.1:9000;
}
server {
listen 80;
server_name mysite.com www.mysite.com;
charset utf-8;
location ~ /blog/.+\.php$ {
fastcgi_pass 127.0.0.1:9000;
alias /var/www;
try_files $uri =404;
fastcgi_index index.php;
include fastcgi_params;
}
location/{
uwsgi_pass django;
include /home/ubuntu/web/www.mysite.com/uwsgi-tutorial/mysite/uwsgi_params; # the uwsgi_params file you installed
}
}
thanx哥們派對辦公室:) –