Forum OpenACS Q&A: One IP, Many Domains
In apache there is a facility to serve multiple sites on 1 IP using virtual host
I have 2 openacs development sites running using aolserver
on port 9191 and 9192 .
I have to specify these ports to view the sites.
Can I configure apache or aolserver such that a request coming for www.test1.com is served by 9191 and www.test2.com by 9192
The good news is that the feature's been put back into AOLserver 4.0, which is currently in beta. The beta has a couple of bugs that break OpenACS but the current CVS tip looks good. In fact our own Jeff Davis is going to be testing it in the next week or so to verify that 4.6 works with it.
You can then expect an AOLserver 4.0 final release in a few weeks, maybe the end of this month.
google for "reverse proxy squid" and it is fairly easy to setup. You will lose the logs this way though as AOLserver doesn't recognize the X-Forwarded For header (squid keeps the original request anyway).
I've also tried Pound (http://www.apsis.ch/pound/) but that proved to be incompatible with a series of ns_writes as used in ACS bootstrap. Pound closes the pipe immediately after the HTTP headers are returned and subsequent never make it too the client.
The nsvhr/nsunix combination is fairly light weight and you don't lose any logs.
I am glad to here the patches were ported to 3.5, I will try them out.
- Rob Mayoff's dqd_log module to log the X-Forwarded-For address as the requestor's IP
- squirm to write the forwarding (and filtering rules)
I belive you only have to define CP and maybe RM like this
# needed by dqd_* modules
Or use as template a Makfile from a core AOLserver module.
On the main topic:
Using nsvhr separates you virtual server into separate processed. With AOLserver 4.0 you can have totaly separete AOLserver 3.x-like servers (almost the same) but in one AOLserver 4.0 process. I have AOLserver 3.x exention (which could be ported to AOLserver 4.0) that allows you to have in one virtual server many sub-virtual server that have separate:
It suits my need to have one TCL code base, but to serve sites with different url layout.
I'm in the process of cleaning it up so I could release it to the public.