[HCoop-Help] mod_python proxy settings.
caden at hcoop.net
Thu Jul 31 13:56:15 EDT 2008
Thanks Björn, that makes sense.
And it works!
I'm going to add the cron restart next, and base it on the example
provided in the Wiki. So far I'm finding domtool to be brilliant.
This is the first confusion I've had with it.
On Thu, Jul 31, 2008 at 3:14 AM, Björn Lindström <bkhl at elektrubadur.se> wrote:
> On Thu, Jul 31, 2008 at 07:36, C. Howell <caden at hcoop.net> wrote:
>> I'm trying to set up an apache instance with mod_python. I downloaded
>> and compiled Apache 2 with no problems. Also the redirect
>> instructions about setting up a proxy were very helpful in the wiki.
>> That seems to have worked. However, once I set up the proxy, it
>> seemed that I could no longer access cadenhowell.com without the www.
>> cadenhowell.com without the www now redirects to hcoop.net. Here's
>> what the domtool config file looks like:
>> dom "cadenhowell.com" where
>> DefaultAlias = false; (* avoids *@cadenhowell.com e-mail alias *)
>> DocumentRoot = home "public_html/cadenhowell.com/"
>> emailAlias "caden" "0x435448 at gmail.com";
>> web "www" with
>> proxyPass "/pie" "http://localhost:4242/";
>> proxyPassReverse "/pie" "http://localhost:4242/";
>> I assume it is because I added the 'web "www"' section for the proxy,
>> but I could not figure out how to make those instructions apply to the
>> entire domain. How would I do that?
> You should extend the default www vhost defined by dom, rather than
> overriding it. The WWW variable lets you extend the vhost already
> defined by dom, which will also apply to the cadenhowell.com vhost.
> So, try something like this:
> dom "cadenhowell.com" where
> DefaultAlias = false;
> DocumentRoot = home "public_html/cadenhowell.com/";
> WWW = begin
> proxyPass "/pie" "http://localhost:4242/";
> proxyPassReverse "/pie" "http://localhost:4242/"
> emailAlias "caden" "0x435448 at gmail.com"
> HCoop-Help mailing list
> HCoop-Help at lists.hcoop.net
More information about the HCoop-Help