Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ignored: "-" thing used or unknown variable in regex/rew
- if (!-f $request_filename){
- set $rule_1 1$rule_1;
- }
- if (!-d $request_filename){
- set $rule_1 2$rule_1;
- }
- if ($rule_1 = "21"){
- rewrite /. /index.php last;
- }
- gzip on;
- gzip_disable "MSIE [1-6]\\.(?!.*SV1)";
- gzip_proxied any;
- gzip_comp_level 5;
- gzip_types text/plain text/css application/javascript application/x-javascript text/xml application/xml application/rss+xml text/javascript image/x-icon image/bmp image/svg+xml;
- gzip_vary on;
- location ~* \.(jpg|jpeg|png|gif|ico|css|js|pdf|svg)$ {
- expires 7d;
- add_header Cache-Control "public, no-transform";
- }
- location ~* \.(jpg|jpeg|png|gif|ico|css|js|pdf|svg)$ {
- expires 7d;
- }
- location ~* \.(pdf|html|swf)$ {
- expires 7d;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement