Feedback on NGINX + Mongrel setup for multiple rails applications

0 views
Skip to first unread message

goodieboy

unread,
Apr 16, 2007, 2:12:15 PM4/16/07
to Deploying Rails
What I have setup now is working well. I'm hoping to get some feedback
on this. Any potential problems with this setup?

I have a firewall setup to allow *only local* access to the needed
ports, except 80

In Apache 2.0 main conf file:

<VirtualHost *:80>
ProxyRequests Off
ProxyPreserveHost on
<Location /app1>
ProxyPass http://127.0.0.1:9020/app1
ProxyPassReverse http://127.0.0.1:9020/app1
</Location>
<Location /app2>
ProxyPass http://127.0.0.1:9020/app2
ProxyPassReverse http://127.0.0.1:9020/app2
</Location>
</VirtualHost>

In NGINX config file:
http://pastie.caboo.se/54245

Mongrel Config for app1:
----
prefix: /app1
cwd: /usr/local/projects/app1
port: 9021
environment: production
pid_file: log/mongrel.pid
servers: 2

Mongrel Config for app1:
----
prefix: /app2
cwd: /usr/local/projects/app2
port: 9030
environment: production
pid_file: log/mongrel.pid
servers: 2

Reply all
Reply to author
Forward
0 new messages