Skip to content
Browse files

changed some in crawford

  • Loading branch information...
1 parent 9776194 commit 57f21f1aaf18c239c6ebe3691eaa17c00f17767f Julian Jorgensen committed
Showing with 81 additions and 16 deletions.
  1. +49 −0 virtualhosts/localhost.crawfordgroup.com.conf
  2. +32 −16 virtualhosts/localhost.theadobestudio.com.conf
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
48 virtualhosts/localhost.theadobestudio.com.conf
@@ -7,27 +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 ~ \.php(.*)$
+
+ 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]\.";
}
+
}

0 comments on commit 57f21f1

Please sign in to comment.
Something went wrong with that request. Please try again.