Guest User

Untitled

a guest
Sep 13th, 2018
179
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # This is a default site configuration which will simply return 404, preventing
  2. # chance access to any other virtualhost.
  3.  
  4. server {
  5. listen 80;
  6. listen [::]:80;
  7.  
  8. server_name widgets;
  9.  
  10. access_log /var/log/nginx/widgets.access_log main;
  11. error_log /var/log/nginx/widgets.error_log info;
  12.  
  13. #root folder to look in for webapp:
  14. root /var/www/localhost/htdocs/widgets;
  15.  
  16. #acceptable home pages
  17. index index.php index.html index.htm;
  18. #location /widgets{
  19.  
  20. location ~* \.php$ {
  21. try_files $uri =404;
  22. include /etc/nginx/fastcgi.conf;
  23. include /etc/nginx/fastcgi_params;
  24. fastcgi_index index.php;
  25. fastcgi_pass 127.0.0.1:9000;
  26. # }
  27. }
  28. }
RAW Paste Data