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

Conflicts:
	.gitignore
  • Loading branch information...
commit 2f07f2fa2abbe11cd576067f8b7275bc2ee04e36 2 parents 53ae7eb + 777003d
@pgib pgib authored
View
3  .gitignore
@@ -1,2 +1,3 @@
.DS_Store
-
+virtualhosts/localhost.atmaroot.com.conf
+virtualhosts/localhost.jeancueta.com.conf
View
4 upstreams/adobe-max-online.conf
@@ -0,0 +1,4 @@
+upstream adobe-max-online
+{
+ server localhost:8668 max_fails=3 fail_timeout=2s;
+}
View
BIN  virtualhosts/.DS_Store
Binary file not shown
View
23 virtualhosts/localhost.ayvawards.adobe.com.conf
@@ -0,0 +1,23 @@
+server
+{
+ listen 127.0.0.1:8080;
+ server_name localhost.ayvawards.adobe.com;
+
+ root /usr/local/sites/ayv-awards;
+ index index.php index.html;
+
+ if (!-e $request_filename)
+ {
+ rewrite ^(.*)-([0-9]+)\.(css|js|png|swf|xml)$ $1.$3 break;
+ }
+
+ error_page 404 /error/notfound.php;
+
+ 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
24 virtualhosts/localhost.coverallcrew.com.conf
@@ -0,0 +1,24 @@
+server
+{
+ listen 127.0.0.1:8080;
+ server_name localhost.coverallcrew.com;
+
+ root /usr/local/sites/coverallcrew.com;
+
+ 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
49 virtualhosts/localhost.crawfordgroup.com.conf
@@ -0,0 +1,49 @@
+server
+{
+ listen 127.0.0.1:8080;
+ server_name localhost.crawfordgroup.com;
+
+ root /usr/local/sites/crawfordgroup.com;
+
+ index index.php index.html;
+
+ location /
+ {
+ if (!-e $request_filename)
+ {
+ rewrite ^.*$ /index.php last;
+ }
+
+ }
+
+ if (!-e $request_filename)
+ {
+ rewrite ^(.*)-([0-9]+)\.(css|js|png|swf)$ $1.$3 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;
+ }
+
+ location ^~ /sync/
+ {
+ rewrite ^/sync/(.*) /$1 break;
+ proxy_pass_request_headers on;
+ proxy_ignore_headers Expires Cache-Control;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header Host $http_host;
+ proxy_pass_header Set-Cookie;
+ proxy_pass http://sios-sync-proxy;
+
+ 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]\.";
+ }
+
+}
View
52 virtualhosts/localhost.theadobestudio.com.conf
@@ -7,35 +7,43 @@ server
index index.php index.html;
+ location /
+ {
+ if (!-e $request_filename)
+ {
+ rewrite ^.*$ /index.php last;
+ }
+
+ }
+
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(.*)$
{
- include fastcgi_params;
-
- # A handy function that became available in 0.7.31 that breaks down
- # The path information based on the provided regex expression
- # This is handy for requests such as file.php/some/paths/here/
- fastcgi_split_path_info ^(/simplesamlphp/www/[a-z]+\.php)(.+)$;
+ fastcgi_pass 127.0.0.1:9000;
+ fastcgi_index index.php;
+ fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
+ include fastcgi_params;
+ }
+
+ location ^~ /sync/
+ {
+ rewrite ^/sync/(.*) /$1 break;
+ proxy_pass_request_headers on;
+ proxy_ignore_headers Expires Cache-Control;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header Host $http_host;
+ proxy_pass_header Set-Cookie;
+ proxy_pass http://sios-sync-proxy;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- #
- #fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
- fastcgi_param REQUEST_URI $request_uri;
-
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
+ 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]\.";
}
+
}
Please sign in to comment.
Something went wrong with that request. Please try again.