Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. erver
  2. {
  3. server_name .hack.gl;
  4.  
  5. access_log /var/log/nginx/hack.gl.access.log;
  6.  
  7. error_log /var/log/nginx/hack.gl.error.log;
  8.  
  9. root /usr/local/www/nginx/hack.gl/html;
  10.  
  11. index index.php index.html index.htm;
  12.  
  13. # use fastcgi for all php files
  14. location ~ \.php$
  15. {
  16. fastcgi_pass 127.0.0.1:9000;
  17. fastcgi_index index.php;
  18. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  19. include fastcgi_params;
  20. }
  21.  
  22. # deny access to apache .htaccess files
  23. location ~ /\.ht
  24. {
  25. deny all;
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement