AOL Webserver - config file example of multihome config?

This is Interesting: Free IT Magazines  
Home > Archive > AOL Webserver > April 2006 > config file example of multihome config?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author config file example of multihome config?
John Buckman

2006-04-29, 7:11 pm

I'm struggling to configure AOLserver to support multiple web sites,
with independent TCP/IP addresses.

Can someone attach a config file example of multihoming?

The config file seems to support it, but there are both server-
specific and global mentions of TCP/IP address and port #, so it's
quite unclear how to transfer the sample config file into one that's
multihome capable.

-john


Wojciech Kocjan

2006-04-30, 7:11 am

Dnia 30-04-2006 o 00:42:30 John Buckman <john@MAGNATUNE.COM> napisa=C5=82=
:
> I'm struggling to configure AOLserver to support multiple web sites, =20
> with independent TCP/IP addresses.
>
> Can someone attach a config file example of multihoming?
>
> The config file seems to support it, but there are both server-specific=

=20
> and global mentions of TCP/IP address and port #, so it's quite unclear=

=20
> how to transfer the sample config file into one that's multihome capabl=

e.

Notice you need to specify nssock multiple times and you need to configur=
e =20
each of it's instances.

ns_section "ns/server/$server/modules"
ns_param "nssock1" "nssock.so"
ns_param "nssock2" "nssock.so"


ns_section "ns/server/$server/module/nssock1"
ns_param "Port" "80"
ns_param "Hostname" "www1.something.com"
ns_param "Address" "10.0.0.1"

ns_section "ns/server/$server/module/nssock2"
ns_param "Port" "80"
ns_param "Hostname" "www2.something.com"
ns_param "Address" "10.0.0.2"

Of course ports may also differ.

--=20
Wojciech Kocjan
wojciech@kocjan.org


John Buckman

2006-04-30, 1:11 pm

On Apr 30, 2006, at 12:57 AM, Wojciech Kocjan wrote:

> Dnia 30-04-2006 o 00:42:30 John Buckman <john@MAGNATUNE.COM> napisa=C5=82=

:
>
> Notice you need to specify nssock multiple times and you need to =20
> configure each of it's instances.


The config file below seems to be to get one $server instance to =20
listen to multiple IP addresses.

What I'm looking to do is have multiple $servers in one aolserver =20
process

Iie: host several unrelated web sites with one aolserver process.

Doable? Config example?

-john


>
> ns_section "ns/server/$server/modules"
> ns_param "nssock1" "nssock.so"
> ns_param "nssock2" "nssock.so"
>
>
> ns_section "ns/server/$server/module/nssock1"
> ns_param "Port" "80"
> ns_param "Hostname" "www1.something.com"
> ns_param "Address" "10.0.0.1"
>
> ns_section "ns/server/$server/module/nssock2"
> ns_param "Port" "80"
> ns_param "Hostname" "www2.something.com"
> ns_param "Address" "10.0.0.2"
>
> Of course ports may also differ.
>
> --=20
> Wojciech Kocjan
> wojciech@kocjan.org
>
>
> --
> AOLserver - http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to =20
> <listserv@listserv.aol.com> with the
> body of "SIGNOFF AOLSERVER" in the email message. You can leave the =20
> Subject: field of your email blank.



dhogaza@PACIFIER.COM

2006-04-30, 1:11 pm

> What I'm looking to do is have multiple $servers in one aolserver
> process
>
> Iie: host several unrelated web sites with one aolserver process.
>
> Doable? Config example?


Here's the wiki entry on virtual hosting:

http://panoptic.com/wiki/aolserver/Virtual_Hosting

That example is for multiple servers on a single IP. Since you've figured
out how to listen to multiple IPs you should be able to figure out how to
bind them to different virtual servers ...

Post a working example when you have one and ... add it to the wiki!


Tom Jackson

2006-04-30, 1:11 pm

John,

Here is an example which covers virtual servers using multiple nssocks,
and the same nssock for multiple virtual servers.

<http://rmadilo.com/m2/multi-server-example/>

There is a static config at the top of
<http://rmadilo.com/m2/multi-server-...ple-startup.txt>,
generated from the example.

tom jackson


On Saturday 29 April 2006 15:42, John Buckman wrote:
> I'm struggling to configure AOLserver to support multiple web sites,
> with independent TCP/IP addresses.
>
> Can someone attach a config file example of multihoming?
>
> The config file seems to support it, but there are both server-
> specific and global mentions of TCP/IP address and port #, so it's
> quite unclear how to transfer the sample config file into one that's
> multihome capable.
>
> -john
>
>
> --
> AOLserver - http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to
> <listserv@listserv.aol.com> with the body of "SIGNOFF AOLSERVER" in the
> email message. You can leave the Subject: field of your email blank.



John Buckman

2006-04-30, 7:11 pm

On Apr 30, 2006, at 10:46 AM, Tom Jackson wrote:

> John,
>
> Here is an example which covers virtual servers using multiple
> nssocks,
> and the same nssock for multiple virtual servers.
>
> <http://rmadilo.com/m2/multi-server-example/>
>
> There is a static config at the top of
> <http://rmadilo.com/m2/multi-server-...ple-startup.txt>,
> generated from the example.


Perfect, thank you! Clearly, one of the key ideas is multiple sock
modules, as you have:

ns_section ns/modules
ns_param nssock0 /web/m2/bin/nssock.so
ns_param nssock2 /web/m2/bin/nssock.so
ns_param nssock3 /web/m2/bin/nssock.so

-john


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com