Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- erver {
- listen 8000;
- # root folder for static files
- root /home/sergi/sao/;
- # Add index.php to the list if you are using PHP
- index index.html index.htm index.nginx-debian.html;
- server_name _;
- client_max_body_size 50M;
- location / {
- include uwsgi_params;
- if ($request_method = POST) {
- uwsgi_pass localhost:8989;
- break;
- }
- # First attempt to serve request as file, then
- # as directory, then fall back to displaying a 404.
- try_files $uri $uri/ =404;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement