server { listen 12380; server_name 192.168.0.135; charset utf-8; root /home/ryan/projects/orderstat; #access_log logs/orderstat.access.log main; #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # #error_page 500 502 503 504 /50x.html; #location = /50x.html { # root html; #} if ($request_uri ~* ^.*\.(svn|git|hg|bzr|cvs).*$) { return 404; } location ~* ^.+\.(css|js|jpg|png|gif|ico|swf|pdf|txt|xlsx)$ { access_log off; expires 30d; } # pass the Python scripts to FastCGI server listening on 127.0.0.1:9000 # location / { auth_basic "Restricted"; auth_basic_user_file authes/orderstat; #uwsgi_pass 127.0.0.1:8000; uwsgi_pass unix:/var/run/uwsgi/orderstat.sock; include uwsgi_params; } }