ここで見つけたチュートリアルに従いましたが、静的ファイルにアクセスしようとすると、ページが見つからないというエラーが発生します。これが私がフォローしていたチュートリアルですhttps://gist.github.com/evildmp/3094281
これは、nginx のエラー ログ ファイルにあります。2013/07/17 09:55:15 [emerg] 2891#0: "upstream" ディレクティブは /etc/nginx/nginx.conf:2 では許可されていません
そして、これは私のnginx confファイルです
# nginx.conf
upstream django {
# connect to this socket
# server unix:///tmp/uwsgi.sock; # for a file socket
server 127.0.0.1:8000; # for a web port socket was 8001
}
server {
# the port your site will be served on
listen 8000;
# the domain name it will serve for
server_name inventory.ien.gatech.edu; # substitute your machine's IP address or FQDN
charset utf-8;
#Max upload size
client_max_body_size 75M; # adjust to taste
# Django media
location /media {
alias /Desktop/Projects/Newest/IEN_Inventory/Inventory/templates/media; # your Django project's media files
}
location /static {
alias /Desktop/Projects/Newest/IEN_Inventory/Inventory/templates/media; # your Django project's static files
}
# Finally, send all non-media requests to the Django server.
location / {
uwsgi_pass django;
include /etc/nginx/uwsgi_params; # or the uwsgi_params you installed manually
}
}
助けやアドバイスをありがとう。