Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of github.com:coverall/nginx

  • Loading branch information...
commit 11a1c53cc9a6b9318897d9da7bd4e7ca39c59410 2 parents 78ca29b + c6c04db
@pgib pgib authored
View
49 virtualhosts/localhost.attendease.com.conf
@@ -3,7 +3,10 @@ server
listen 127.0.0.1:8080;
server_name localhost.attendease.com;
- root /usr/local/sites/attendease/public;
+ # Rails app
+ #root /usr/local/sites/attendease/public;
+ # PHP 'coming soon' page
+ root /usr/local/sites/attendease_landing;
index index.php index.html index.htm;
if (!-e $request_filename)
@@ -11,24 +14,32 @@ server
rewrite ^(.*)-([0-9]+)\.(css|js|png|swf|xml)$ $1.$3 break;
}
- location ^~ /
- {
- proxy_pass_request_headers on;
- proxy_ignore_headers Expires Cache-Control;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_pass_header Set-Cookie;
- proxy_set_header Host $http_host;
- proxy_pass http://attendease;
-
- gzip on;
- gzip_min_length 1000;
- gzip_proxied expired no-cache no-store private auth;
- gzip_types text/plain text/css application/xml application/json application/javascript;
- gzip_disable "MSIE [1-6]\.";
+# location ^~ /
+# {
+# proxy_pass_request_headers on;
+# proxy_ignore_headers Expires Cache-Control;
+# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+# proxy_pass_header Set-Cookie;
+# proxy_set_header Host $http_host;
+# proxy_pass http://attendease;
+#
+# gzip on;
+# gzip_min_length 1000;
+# gzip_proxied expired no-cache no-store private auth;
+# gzip_types text/plain text/css application/xml application/json application/javascript;
+# gzip_disable "MSIE [1-6]\.";
+#
+# if (-f $request_filename)
+# {
+# break;
+# }
+# }
- if (-f $request_filename)
- {
- break;
- }
+ location ~ \.php$
+ {
+ fastcgi_pass 127.0.0.1:9000;
+ fastcgi_index index.php;
+ fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
+ include fastcgi_params;
}
}
View
23 virtualhosts/localhost.conf
@@ -0,0 +1,23 @@
+server
+{
+ listen 127.0.0.1:8080;
+ server_name localhost krunk.coverall.crew;
+
+ root /usr/local/sites;
+
+ index index.php index.html;
+
+ if (!-e $request_filename)
+ {
+ rewrite ^(.*)-([0-9]+)\.(css|js|png|swf)$ $1.$3 break;
+ rewrite ^.*$ /index.php last;
+ }
+
+ location ~ \.php$
+ {
+ fastcgi_pass 127.0.0.1:9000;
+ fastcgi_index index.php;
+ fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
+ include fastcgi_params;
+ }
+}
View
30 virtualhosts/localhost.crawfordgroup.com
@@ -0,0 +1,30 @@
+server
+{
+ listen 127.0.0.1:8080;
+ server_name localhost.crawfordgroup.com;
+
+ root /usr/local/sites/crawfordgroup.com;
+
+ index index.php index.html;
+
+ if (!-e $request_filename)
+ {
+ rewrite ^(.*)-([0-9]+)\.(css|js|png|swf)$ $1.$3 break;
+ }
+
+ location /
+ {
+ if (!-e $request_filename)
+ {
+ rewrite ^.*$ /index.php last;
+ }
+ }
+
+ location ~ \.php$
+ {
+ fastcgi_pass 127.0.0.1:9000;
+ fastcgi_index index.php;
+ fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
+ include fastcgi_params;
+ }
+}
View
9 virtualhosts/localhost.fipa.bc.ca.conf
@@ -0,0 +1,9 @@
+server
+{
+ listen 127.0.0.1:8080;
+ server_name localhost.fipa.bc.ca;
+
+ root /usr/local/sites/fipa.bc.ca;
+
+ index index.php index.html;
+}
View
107 virtualhosts/localhost.max.adobe.com.conf
@@ -1,7 +1,7 @@
server
{
listen 127.0.0.1:8080;
- server_name localhost.max.adobe.com max2011;
+ server_name localhost.max.adobe.com max2011 max.adobe.com;
root /usr/local/sites/2011.max.adobe.com;
index index.php index.html;
@@ -65,4 +65,109 @@ server
gzip_types text/plain text/css application/xml application/json application/javascript;
gzip_disable "MSIE [1-6]\.";
}
+
+ 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;
+ }
+
+ }
+
+ 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;
+ }
+
+ }
+
}
View
2  virtualhosts/localhost.sios.com.conf
@@ -19,7 +19,7 @@ server
rewrite ^/products/windows/wsfc.php /products/steeleye-datakeeper-windows/ permanent;
rewrite ^/support/$ /support/overview/ permanent;
- # support lame flash movies
+ # support flash movies
rewrite ^(.*)MinimaFlatCustomColorPlayBackSeekMute.swf$ /downloads/MinimaFlatCustomColorPlayBackSeekMute.swf break;
location /
View
8 virtualhosts/localhost.theadobestudio.com.conf
@@ -11,6 +11,14 @@ server
{
rewrite ^(.*)-([0-9]+)\.(css|js|png|swf)$ $1.$3 break;
}
+
+ location /
+ {
+ if (!-e $request_filename)
+ {
+ rewrite ^.*$ /index.php last;
+ }
+ }
location ~ \.php(.*)$
{
Please sign in to comment.
Something went wrong with that request. Please try again.