Hi folks,
I have a question regarding a specific server setup and the routing rules:
There are two servers: one is the "official" server which holds the domain
(www.somewilddomain.com) and the official, static website and a second
server which will hold the Pylons application. The second server should be
reachable through different subdomains: shop and support
=> shop.somewilddomain.com
=> support.somewilddomain.com
I would approach the configuration as follows:
- the first server gets two subdomain entries pointing to the second server
(which has no domain name)
- the second server uses Apache + proxy_pass to route the traffic to the
Pylons app
- the pylons app on the second server would use the subdomain-features from
routes to find the correct controller
Is this the best approach? Any other ideas? Maybe using proxy_pass already
on the first server, fully skipping Apache on the second server?
Any pointers would be helpful.
Regards,
Andrew