Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen *:80;
- server_name blog.net www.blog.net;
- root /var/www/blog.net;
- index index.html index.php;
- location ~* "^/(wp-config|wp-include)((/.*)?)$" {
- deny all;
- return 404;
- }
- location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpeg|avi|zip|gz|bz2|swf|ico)$ {
- access_log off;
- }
- location ~ \.php$ {
- fastcgi_pass 127.0.0.1:9000;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME /var/www/blog.net$fastcgi_script_name;
- fastcgi_param PATH_INFO $fastcgi_script_name;
- try_files $uri $uri/ =404;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement