----- Original Message -----
From: "Dean Baender" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 08, 2002 10:21 PM
Subject: [AOLSERVER] Newbie question: virtual host config confusion


> I've just started working with AOLserver (v3.4.2), and I'm trying to
> tackle virtual hosting... so far without success.  And I must admit
> to being a bit overwhelmed by the plethora of vhost modules,
> especially since the documentation is often rather minimal.
>
> If anyone can provide or add to a comparison of the various vhost
> modules, or perhaps give a configuration example for their favorite
> module I'd be very appreciative.
>
> To start off, here are the modules I've tried and where I get stuck...
>
> 1. The C based vhost module
(http://deadlock.ed.tudelft.nl/~daniel/vhost.html)
its: http://deadlock.et.tudelft.nl/~daniel/vhost.html  ;)
>
>     The module builds with no warnings or errors.
>     The server starts normally... I get the Notice: modload: that vhost.so
>        loaded.
>     My vhost directories are /web/servers/server1/pages/<FQDN>
>     index.html has tried living in both .../<FQDN>/index.html and
>        .../<FQDN>/pages/index.html
>
>     In either case when I try to connect to the server it dies with a
>     Seg Fault.


This is the one I use.. my master host is www.ariven.com and it works
great.. I have about 8 virtually hosted sites under it now...

I am not sure what you are referring to when you use <FQDN> in your example
above... but..

my main sites file path is:

/web/ariven/pages/

One of my virtually hosted URLs is:
http://www.bullybots.com
and its file path is:
/web/ariven/pages/www.bullybots.com/

so its index file is:
/web/ariven/pages/www.bullybots.com/index.adp

Though I -can- access it urlwise:
www.ariven.com/www.bullybots.com/index.adp   and I do that for testing as I
am setting things up sometimes..

You do have to make sure that you include the "realhosts" parameter is in
the ini file for the server..
ns_section "ns/server/cornet/module/vhost"
ns_param realhosts "myserver;myserver.abc.com;myserver.def.com"

so in mine its:

ns_section "ns/server/ariven/module/vhost"
ns_param realhosts www.ariven.com;ariven.com

Once you have these ducks in a row it works great here....  it shares the
tcl code with all virtually hosted servers though, so you have to be mindful
when you are making registered procedures.



--
  Patrick Spence <[EMAIL PROTECTED]>
  www.RandomRamblings.com
  www.Ariven.com
  www.ReturnOurRights.org

Reply via email to