Advertisement
monochromec

nginx default site

Feb 27th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. server {
  2. listen 80 default_server;
  3. listen [::]:80 default_server;
  4.  
  5. root /var/www/html;
  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.  
  12. location / {
  13. # First attempt to serve request as file, then
  14. # as directory, then fall back to displaying a 404.
  15. # try_files $uri $uri/ =404;
  16. # index index.html index.htm;
  17. include uwsgi_params;
  18. # this is the correct uwsgi_modifier1 parameter for a php based application
  19. # uwsgi_modifier1 14;
  20. # uncomment the following if you want to use the unix socket instead
  21. # uwsgi_pass unix:/var/run/bjoern.sock;
  22. uwsgi_pass 127.0.0.1:8000;
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement