Created
February 25, 2010 18:54
-
-
Save Phrogz/314897 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes 6; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
#set $log_loc /var/log/nginx/access.log; | |
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | |
'$status $body_bytes_sent "$http_referer" ' | |
'"$http_user_agent" "$http_x_forwarded_for"'; | |
access_log /var/log/nginx/access.log main; | |
sendfile on; | |
tcp_nopush on; | |
tcp_nodelay off; | |
gzip on; | |
#gzip_static on; | |
#gzip_buffers 16 8k; | |
gzip_http_version 1.0; | |
gzip_comp_level 2; | |
gzip_proxied any; | |
gzip_vary on; | |
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml; | |
keepalive_timeout 65; | |
upstream ramaze.phrogz { | |
server 127.0.0.1:9000; | |
#server 127.0.0.1:9001; | |
} | |
upstream ramaze.objjob { | |
server 127.0.0.1:9002; | |
#server 127.0.0.1:9003; | |
} | |
upstream ramaze.pentagonalrobin { | |
server 127.0.0.1:9006; | |
} | |
upstream ramaze.adkpi { | |
server 127.0.0.1:9009; | |
} | |
server { | |
listen 80; | |
server_name phrogz.net; | |
server_name_in_redirect off; # 301 redirects to http://192.168.191.24/js instead of http://localhost/js | |
access_log /var/log/nginx/phrogz.access.log main; | |
root /var/www/phrogz.net/public; | |
#log_subrequest on; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $http_host; | |
proxy_redirect off; | |
# Root directory only | |
location = / { | |
proxy_pass http://ramaze.phrogz; | |
break; | |
} | |
#location ~* ^/objjob/(.*) { | |
# rewrite ramaze.objjob/$1 permanent; | |
#} | |
location / { | |
autoindex on; | |
if (!-e $request_filename) { | |
proxy_pass http://ramaze.phrogz; | |
break; | |
} | |
} | |
error_page 500 502 503 504 /50x.html; | |
location = /50x.html { | |
root html; | |
} | |
} | |
server { | |
listen 80; | |
server_name objjob.phrogz.net; | |
server_name_in_redirect off; # 301 redirects to http://192.168.191.24/js instead of http://localhost/js | |
access_log /var/log/nginx/objjob.access.log main; | |
root /var/www/objjob/public; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $http_host; | |
proxy_redirect off; | |
#log_subrequest on; | |
location / { | |
if (!-f $request_filename) { | |
proxy_pass http://ramaze.objjob; | |
break; | |
} | |
} | |
error_page 500 502 503 504 /50x.html; | |
location = /50x.html { | |
root html; | |
} | |
} | |
server { | |
listen 80; | |
server_name pentagonalrobin.phrogz.net; | |
server_name_in_redirect off; # 301 redirects to http://192.168.191.24/js instead of http://localhost/js | |
access_log /var/log/nginx/pentagonalrobin.access.log main; | |
root /var/www/pentagonalrobin/public; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $http_host; | |
proxy_redirect off; | |
#log_subrequest on; | |
location / { | |
if (!-f $request_filename) { | |
proxy_pass http://ramaze.pentagonalrobin; | |
break; | |
} | |
} | |
error_page 500 502 503 504 /50x.html; | |
location = /50x.html { | |
root html; | |
} | |
} | |
server { | |
listen 80; | |
server_name adkpi.phrogz.net; | |
server_name_in_redirect off; # 301 redirects to http://192.168.191.24/js instead of http://localhost/js | |
access_log /var/log/nginx/adkpi.access.log main; | |
root /var/www/adkpi/public; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $http_host; | |
proxy_redirect off; | |
#log_subrequest on; | |
location / { | |
if (!-f $request_filename) { | |
proxy_pass http://ramaze.adkpi; | |
break; | |
} | |
} | |
error_page 500 502 503 504 /50x.html; | |
location = /50x.html { | |
root html; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment