これは、それは私が/var/log/nginx/error.logからエラーを知っている仕事と
をaccess.logをdoesntの場合、私は
を推測するすべての要求を処理する迅速かつ汚いnginxの設定です
upstream django {
server 127.0.0.1:9001;
}
#main server
server {
location /admin {
deny all;
}
location /static {
alias /var/www/static;
}
location/{
uwsgi_pass django;
include uwsgi_params; # the uwsgi_params file you installed
}
}
#your api server
server {
server api.example.com
location /admin {
deny all;
}
location /static {
alias /var/www/static;
}
location/{
uwsgi_pass django;
include uwsgi_params; # the uwsgi_params file you installed
}
}
server {
server_name admin.example.com;
location /static {
alias /var/www/static;
}
location /admin {
uwsgi_pass django;
include uwsgi_params; # the uwsgi_params file you installed
}
location/{
deny all;
}
}