Advertisement
Guest User

tryton nginx configuration

a guest
Sep 20th, 2016
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.82 KB | None | 0 0
  1. erver {                                                                      
  2.     listen 8000;                                                              
  3.                                                                                
  4.     # root folder for static files                                            
  5.     root /home/sergi/sao/;                                                    
  6.                                                                                
  7.     # Add index.php to the list if you are using PHP                          
  8.     index index.html index.htm index.nginx-debian.html;                        
  9.                                                                                
  10.     server_name _;                                                            
  11.     client_max_body_size 50M;                                                  
  12.                                                                                
  13.     location / {                                                              
  14.         include uwsgi_params;                                                  
  15.         if ($request_method = POST) {                                          
  16.             uwsgi_pass localhost:8989;                                        
  17.             break;                                                            
  18.         }                                                                      
  19.         # First attempt to serve request as file, then                        
  20.         # as directory, then fall back to displaying a 404.                    
  21.         try_files $uri $uri/ =404;                                            
  22.     }                                                                          
  23.                                                                                
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement