Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (53 sloc) 2.24 KB
server
{
listen 127.0.0.1:8080;
server_name localhost.sios.com;
root /usr/local/sites/sios.com;
index index.php index.html;
# rewrite some old site links
rewrite ^/products/windows/datakeeper.php /products/steeleye-datakeeper-windows/ permanent;
rewrite ^/downloads/resource/videos/dk-live-migration/index.html /downloads/live-migration/ permanent;
rewrite ^/DataKeeper_Cluster_Edition_144.htm /products/steeleye-datakeeper-windows/ permanent;
rewrite ^/downloads/videos/datakeeper-and-hyper-v-wsfc/index.html /downloads/dataKeeper-and-hyper-v/ permanent;
rewrite ^/downloads/resource/videos/multi-site-hyper-v-configuration /downloads/multi-site-hyper-v-configuration-step-by-step/ permanent;
rewrite ^/downloads/resource/videos/dhcp-cluster-with-datakeeper/index.htm /downloads/dhcp-cluster-with-steelEye-DataKeeper/ permanent;
rewrite ^/downloads/resource/videos/quick-vs-live-migration /downloads/quick-vs-live-migration/ permanent;
rewrite ^/downloads/resource/videos/datakeeper-for-sql/ /downloads/dkce-wss-demo/ permanent;
rewrite ^/products/windows/wsfc.php /products/steeleye-datakeeper-windows/ permanent;
rewrite ^/support/$ /support/overview/ permanent;
# support flash movies
rewrite ^(.*)MinimaFlatCustomColorPlayBackSeekMute.swf$ /downloads/MinimaFlatCustomColorPlayBackSeekMute.swf break;
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]\.";
}
}