Advertisement
Guest User

Untitled

a guest
May 21st, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name localhost;
  4.  
  5. #charset koi8-r;
  6. #access_log /var/log/nginx/host.access.log main;
  7.  
  8. location / {
  9. root /usr/share/nginx/html;
  10. index index.html index.htm;
  11. try_files $uri $uri/ =404;
  12. }
  13.  
  14. #error_page 404 /404.html;
  15.  
  16. # redirect server error pages to the static page /50x.html
  17. #
  18. error_page 500 502 503 504 /50x.html;
  19. location = /50x.html {
  20. root /usr/share/nginx/html;
  21. }
  22.  
  23. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  24. #
  25. #location ~ \.php$ {
  26. # proxy_pass http://127.0.0.1;
  27. #}
  28.  
  29. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  30. #
  31. #location ~ \.php$ {
  32. # root html;
  33. # fastcgi_pass 127.0.0.1:9000;
  34. # fastcgi_index index.php;
  35. # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
  36. # include fastcgi_params;
  37. #}
  38.  
  39. # deny access to .htaccess files, if Apache's document root
  40. # concurs with nginx's one
  41. #
  42. #location ~ /\.ht {
  43. # deny all;
  44. #}
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement