JerryMungo
Honorary Master
- Joined
- Jul 18, 2008
- Messages
- 37,536
- Reaction score
- 6,279
.
Last edited:
South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
server { # simple reverse-proxy
listen 80;
server_name domain2.com www.domain2.com;
access_log logs/domain2.access.log main;
# pass requests for dynamic content to rails/turbogears/zope, et al
location / {
proxy_pass http://127.0.0.1:8080;
}
}
I followed and altered this config to suit my needsI may just end up with an
scenario - probably easier to manage as well.Code:http://myservers.com/app1 http://myservers.com/app2 http://myservers.com/app3
Yup, you will have 3 entries, one for each server..So would I duplicate that server section for each TLD (server1.myserver.com, server2.myserver.com, server3.myserver.com) since the proxy_pass will be to a different IP?