Created
March 8, 2009 23:33
-
-
Save grantmichaels/76008 to your computer and use it in GitHub Desktop.
This file contains 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 blah; | |
worker_processes 6; | |
error_log logs/error.log debug; | |
pid logs/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include conf/mime.types; | |
default_type application/octet-stream; | |
....... | |
upstream mongrel_site_one { | |
server 127.0.0.1:15001; | |
server 127.0.0.1:15002; | |
} | |
server { | |
listen real_ip_number:80; | |
root /rails/site_one/current/public; | |
server_name www.site_one.com site_one.com; | |
........ | |
if (!-f $request_filename) { | |
proxy_pass http://mongrel_site_one; | |
break; | |
} | |
} #server | |
upstream mongrel_site_two { | |
server 127.0.0.1:15003; | |
server 127.0.0.1:15004; | |
} | |
server { | |
listen real_ip_number:80; | |
root /rails/site_two/current/public; | |
server_name www.site_two.com site_two.com; | |
........ | |
if (!-f $request_filename) { | |
proxy_pass http://mongrel_site_two; | |
break; | |
} | |
} #server | |
} #http | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment