Advertisement
ddeineka

blog.net.conf

Jul 16th, 2014
483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. server {
  2. listen *:80;
  3. server_name blog.net www.blog.net;
  4. root /var/www/blog.net;
  5. index index.html index.php;
  6. location ~* "^/(wp-config|wp-include)((/.*)?)$" {
  7. deny all;
  8. return 404;
  9. }
  10. location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpeg|avi|zip|gz|bz2|swf|ico)$ {
  11. access_log off;
  12. }
  13. location ~ \.php$ {
  14. fastcgi_pass 127.0.0.1:9000;
  15. include fastcgi_params;
  16. fastcgi_param SCRIPT_FILENAME /var/www/blog.net$fastcgi_script_name;
  17. fastcgi_param PATH_INFO $fastcgi_script_name;
  18. try_files $uri $uri/ =404;
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement