upstream django {
server unix:///home/ubuntu/web/www.mysite.com/uwsgi-tutorial/mysite/mysite.sock; # for a file socket
}
server {
listen 80;
server_name mysite.com www.mysite.com;
charset utf-8;
client_max_body_size 75M; # adjust to taste
#--------PHP PART -----------------------
location /blog {
alias /var/www;
try_files $uri =404;
index index.php index.html;
}
location ~ /blog/.+\.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/$fastcgi_script_name;
}
location ~ /\.ht {
deny all;
}
#-------------------------------
location /media {
alias /home/ubuntu/web/www.mysite.com/uwsgi-tutorial/mysite/media;
}
location /static {
alias /home/ubuntu/web/www.mysite.com/uwsgi-tutorial/mysite/static;
}
location / {
uwsgi_pass django;
include /home/ubuntu/web/www.mysite.com/uwsgi-tutorial/mysite/uwsgi_params;
}
}
Eu tenho nginx < - > uwsgi < - > django funcionando bem.
mysite.com [django: trabalhando]
mysite.com/blog/index.php [wordpress não funciona]
INFO: link [segui este blog para configurar o wordpress]