Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name www.sevtracker.org;
- rewrite ^(.*) http://sevtracker.org$1 permanent;
- }
- server {
- listen 80;
- server_name sevtracker.org;
- server_name_in_redirect off;
- root /var/www/sevtracker.org/www/;
- access_log /var/log/nginx/sevtracker.org.access.log;
- error_log /var/log/nginx/sevtracker.org.error.log;
- proxy_send_timeout 600;
- proxy_read_timeout 600;
- location ~ /\.ht {
- deny all;
- }
- location ~ \.(.*sql|tpl|db|inc|log)$ {
- deny all;
- }
- location = /favicon.ico {
- log_not_found off;
- access_log off;
- }
- location = /robots.txt {
- allow all;
- log_not_found off;
- access_log off;
- }
- location ~* \.(jpg|jpeg|gif|bmp|ico|png|css|js|swf)$ {
- root /var/www/sevtracker.org/www;
- access_log off;
- expires 30d;
- add_header Cache-Control public;
- }
- # Deny folder (Sec. lvl1)
- location ~ \/(cache|log|attach_mod|config|includes|language|triggers)\/ {
- deny all;
- }
- location / {
- index index.php index.html;
- if (!-f $request_filename){
- set $rule_1 1$rule_1;
- }
- if (!-d $request_filename){
- set $rule_1 2$rule_1;
- }
- rewrite ^/rss.xml /rss.php;
- }
- location ~ \.php$ {
- include fastcgi_params;
- try_files $fastcgi_script_name =404;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement