SHARE
TWEET

blog.net.conf

ddeineka Jul 16th, 2014 264 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top