Permalink
Browse files

Use tabs!

  • Loading branch information...
1 parent 11a1c53 commit 41d79729d07ca98b99dd5299d0084d9e6a4a30ed @pgib pgib committed Oct 19, 2011
Showing with 100 additions and 102 deletions.
  1. +100 −102 virtualhosts/localhost.max.adobe.com.conf
@@ -67,107 +67,105 @@ server
}
location /mailinglist
- {
- passenger_enabled on;
- passenger_base_uri /mailinglist;
- }
-
- location /blog/
- {
- #gzip_static on;
-
- # if the requested file exists, return it immediately
- if (-f $request_filename)
- {
- break;
- }
-
- set $supercache_file '';
- set $supercache_uri $request_uri;
-
- if ($request_method = POST)
- {
- set $supercache_uri '';
- }
-
- # Using pretty permalinks, so bypass the cache for any query string
- if ($query_string)
- {
- set $supercache_uri '';
- }
-
- if ($http_cookie ~* "comment_author_|wordpress|wp-postpass_" )
- {
- set $supercache_uri '';
- }
-
- # if we haven't bypassed the cache, specify our supercache file
- if ($supercache_uri ~ ^(.+)$)
- {
- set $supercache_file /blog/wp-content/cache/supercache/$http_host/$1index.html;
- }
-
- # only rewrite to the supercache file if it actually exists
- if (-f $document_root$supercache_file)
- {
- rewrite ^(.*)$ $supercache_file break;
- }
-
- # all other requests go to Wordpress
- if (!-e $request_filename)
- {
- rewrite . /blog/index.php last;
- }
-
- }
-
+ {
+ passenger_enabled on;
+ passenger_base_uri /mailinglist;
+ }
+
+ location /blog/
+ {
+ #gzip_static on;
+
+ # if the requested file exists, return it immediately
+ if (-f $request_filename)
+ {
+ break;
+ }
+
+ set $supercache_file '';
+ set $supercache_uri $request_uri;
+
+ if ($request_method = POST)
+ {
+ set $supercache_uri '';
+ }
+
+ # Using pretty permalinks, so bypass the cache for any query string
+ if ($query_string)
+ {
+ set $supercache_uri '';
+ }
+
+ if ($http_cookie ~* "comment_author_|wordpress|wp-postpass_" )
+ {
+ set $supercache_uri '';
+ }
+
+ # if we haven't bypassed the cache, specify our supercache file
+ if ($supercache_uri ~ ^(.+)$)
+ {
+ set $supercache_file /blog/wp-content/cache/supercache/$http_host/$1index.html;
+ }
+
+ # only rewrite to the supercache file if it actually exists
+ if (-f $document_root$supercache_file)
+ {
+ rewrite ^(.*)$ $supercache_file break;
+ }
+
+ # all other requests go to Wordpress
+ if (!-e $request_filename)
+ {
+ rewrite . /blog/index.php last;
+ }
+
+ }
+
location /news/
- {
- #gzip_static on;
-
- # if the requested file exists, return it immediately
- if (-f $request_filename)
- {
- break;
- }
-
- set $supercache_file '';
- set $supercache_uri $request_uri;
-
- if ($request_method = POST)
- {
- set $supercache_uri '';
- }
-
- # Using pretty permalinks, so bypass the cache for any query string
- if ($query_string)
- {
- set $supercache_uri '';
- }
-
- if ($http_cookie ~* "comment_author_|wordpress|wp-postpass_" )
- {
- set $supercache_uri '';
- }
-
- # if we haven't bypassed the cache, specify our supercache file
- if ($supercache_uri ~ ^(.+)$)
- {
- set $supercache_file /blog/wp-content/cache/supercache/$http_host/$1index.html;
- }
-
- # only rewrite to the supercache file if it actually exists
- if (-f $document_root$supercache_file)
- {
- rewrite ^(.*)$ $supercache_file break;
- }
-
- # all other requests go to Wordpress
- if (!-e $request_filename)
- {
- rewrite . /news/index.php last;
- }
-
- }
-
+ {
+ #gzip_static on;
+
+ # if the requested file exists, return it immediately
+ if (-f $request_filename)
+ {
+ break;
+ }
+
+ set $supercache_file '';
+ set $supercache_uri $request_uri;
+
+ if ($request_method = POST)
+ {
+ set $supercache_uri '';
+ }
+
+ # Using pretty permalinks, so bypass the cache for any query string
+ if ($query_string)
+ {
+ set $supercache_uri '';
+ }
+
+ if ($http_cookie ~* "comment_author_|wordpress|wp-postpass_" )
+ {
+ set $supercache_uri '';
+ }
+
+ # if we haven't bypassed the cache, specify our supercache file
+ if ($supercache_uri ~ ^(.+)$)
+ {
+ set $supercache_file /blog/wp-content/cache/supercache/$http_host/$1index.html;
+ }
+
+ # only rewrite to the supercache file if it actually exists
+ if (-f $document_root$supercache_file)
+ {
+ rewrite ^(.*)$ $supercache_file break;
+ }
+
+ # all other requests go to Wordpress
+ if (!-e $request_filename)
+ {
+ rewrite . /news/index.php last;
+ }
+ }
}

0 comments on commit 41d7972

Please sign in to comment.