Advertisement
Guest User

Untitled

a guest
Feb 24th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. }
  2. server {
  3. listen Censored;
  4. server_name Censored.ovh www.Censored.ovh;
  5. root /home/admin/web/Censored.ovh/public_html;
  6. index index.php index.html index.htm;
  7. access_log /var/log/nginx/domains/Censored.ovh.log combined;
  8. access_log /var/log/nginx/domains/Censored.ovh.bytes bytes;
  9. error_log /var/log/nginx/domains/Censored.ovh.error.log error;
  10.  
  11. location / {
  12.  
  13. location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
  14. expires max;
  15. }
  16. location ~ /(data|conf|bin|inc)/ {
  17. deny all;
  18. }
  19.  
  20. location ~ /\.ht {
  21. deny all;
  22. }
  23.  
  24. }
  25. location ~ [^/]\.php(/|$) {
  26. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  27. if (!-f $document_root$fastcgi_script_name) {
  28. return 404;
  29. }
  30.  
  31. fastcgi_pass 127.0.0.1:9001;
  32. fastcgi_index index.php;
  33. include /etc/nginx/fastcgi_params;
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement