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 /app2>
ProxyPass http://127.0.0.1:9020/app2
ProxyPassReverse http://127.0.0.1:9020/app2
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