View difference between Paste ID: f3T6u6qx and RV4u2DG8
SHOW: | | - or go back to the newest paste.
1
	fastcgi_cache_path /var/cache/fastcgi levels=1:2
2-
	listen 80;
2+
	keys_zone=cache:100m
3-
	server_name ~^(?:www\.)?(?<domain>.+)$;
3+
	inactive=10d;
4-
	root /home/www/$domain;
4+
5-
	index index.php;
5+
6
        listen 80;
7-
	location / {
7+
        server_name ~^(?:www\.)?(?<domain>.+)$;
8-
		try_files $uri $uri/ /index.php?q=$uri&$args;
8+
        root /home/www/$domain;
9-
	}
9+
        index index.php;
10
 
11-
	location ~* /(images|cache|media|logs|tmp)/.*\.(php|pl|py|jsp|asp|sh|cgi)$ {
11+
        location / {
12-
		return 403;
12+
                try_files $uri $uri/ /index.php?q=$uri&$args;
13-
		error_page 403 /403_error.html;
13+
        }
14-
	}
14+
15
        location ~* /(images|cache|media|logs|tmp)/.*\.(php|pl|py|jsp|asp|sh|cgi)$ {
16-
	location ~ /\. {
16+
                return 403;
17-
		deny  all;
17+
                error_page 403 /403_error.html;
18-
		access_log off;
18+
        }
19-
		log_not_found off;
19+
 
20-
	}
20+
        location ~ /\. {
21
                deny  all;
22-
	location ~* \.(jpg|jpeg|gif|png|ico|css|pdf|ppt|txt|bmp|rtf|js|gz)$ {
22+
                access_log off;
23-
		root /home/www/$domain;
23+
                log_not_found off;
24-
		access_log off;
24+
        }
25-
		expires 30d;
25+
 
26-
		gzip_static on;
26+
        location ~* \.(jpg|jpeg|gif|png|ico|css|pdf|ppt|txt|bmp|rtf|js|gz)$ {
27-
	}
27+
                root /home/www/$domain;
28
                access_log off;
29
                expires 30d;
30-
		fastcgi_pass unix:/var/tmp/joom.sock;
30+
                gzip_static on;
31-
		fastcgi_index index.php;
31+
        }
32-
		client_max_body_size       30m;
32+
 
33-
		client_body_buffer_size    128k;
33+
34-
		fastcgi_cache_min_uses 1;
34+
                fastcgi_pass unix:/var/tmp/joom.sock;
35-
		fastcgi_cache_use_stale error timeout invalid_header http_500;
35+
                fastcgi_index index.php;
36-
		fastcgi_cache_valid  200 302 304 10m;
36+
                client_max_body_size       30m;
37-
		fastcgi_cache_valid  301 1h;
37+
                client_body_buffer_size    128k;
38-
		fastcgi_cache_valid  any 3m;
38+
		fastcgi_intercept_errors off; 
39-
		include /etc/nginx/fastcgi_params;
39+
		fastcgi_cache_key $server_addr$request_uri; 
40-
	}
40+
		fastcgi_cache cache; 
41
                fastcgi_cache_min_uses 1;
42
                fastcgi_cache_use_stale error timeout invalid_header http_500;
43
                fastcgi_cache_valid  any 1h;
44
                include /etc/nginx/fastcgi_params;
45
        }
46
}