OK, all patches applied and rebuilt.
All seems to be working - thank you very much for your help Peter.
By the way here's my config file: (might be a neat way to avoid having a
huge config file)
############################################################################
###
#
# Set up the servers (virtual hosts)
#
############################################################################
###
set servers(laptop) [list "dev" localhost dev 127.0.0.1]
set servers(com) [list "Main site" www.mysite.com]
set servers(net) [list "Corporate site" www.mysite.net]
set servers(docs) [list "Documentation" docs.mysite.net]
set servers(test) [list "Test server" test.mysite.net]
ns_section ns/servers
foreach server [array names servers] {
ns_log notice "Adding server '[lindex $servers($server) 0]'"
ns_param $server [lindex $servers($server) 0]
}
############################################################################
###
############################################################################
###
#
# Socket driver module (HTTP) -- nssock (driver.c)
#
############################################################################
###
ns_section ns/modules
ns_param nssock ${bindir}/nssock${ext}
#
ns_section ns/module/nssock
ns_param hostname $hostname
;# This is not the same as your hostname
ns_param address $address
;# This is not the same as your host addr
ns_param bufsize [expr 16 * 1024]
;# IO buffer size
ns_param rcvbuf 0
;# Use OS defaults
ns_param sndbuf 0
;# Use OS defaults
ns_param socktimeout 30
;# Connection timeout
ns_param sendwait 30
;# Timeout for sending of data
ns_param recvwait 30
;# Timeout for receiving data
ns_param closewait 2
;# Timeout for closing socket
ns_param keepwait 30
;# Keepalive inactivity timeout
ns_param backlog 5
;# 5 pending connections
ns_param port $httpport
;# Port for HTTP (typically 80)
#ns_param location "/"
;# URL for auto-redirects (trailing slash)
ns_section ns/module/nssock/servers
foreach server [array names servers] {
foreach vhost [lrange $servers($server) 1 end] {
ns_log notice "Adding virtual server $vhost to $server"
ns_param $server $vhost
}
}
############################################################################
###
foreach servername [array names servers] {
set serverroot servers/${servername}
set serverdir ${homedir}/servers/${servername}
set pageroot ${homedir}/servers/${servername}/pages
....
rest of the config file using $serverdir, $servername $pageroot etc as
appropriate
can put "switch"es based on servername that are different between servers.
}
regards,
Tim Moss
SiteSpeed Ltd
Mobile: 0 77 9613 4891
Email: [EMAIL PROTECTED]
Website: http://www.site-speed.com
This email contains information from SiteSpeed Ltd, which may be privileged
or confidential. If you are not the intended recipient, be aware that any
disclosure, copying, distribution or use of the contents of this information
is prohibited. If you have received this electronic message in error, please
notify us immediately.
> -----Original Message-----
> From: AOLserver Discussion [mailto:[EMAIL PROTECTED]]On Behalf
> Of Tim Moss
> Sent: 15 January 2003 23:05
> To: [EMAIL PROTECTED]
> Subject: Re: [AOLSERVER] AOLserver 4: Virtual server fix
>
>
> True I haven't applied the patch. Doh!
> However I get this even with hosts that are mapped to a server.
>
>
>
> I also get this warning in the log (once per server except for the first
> one)
>
> [15/Jan/2003:23:03:26][2628.2412][-main-] Warning: cache: duplicate cache
> name: ns:fastpath
>
> regards,
>
> Tim Moss
> SiteSpeed Ltd
> Mobile: 0 77 9613 4891
> Email: [EMAIL PROTECTED]
> Website: http://www.site-speed.com
>
> This email contains information from SiteSpeed Ltd, which may be
> privileged
> or confidential. If you are not the intended recipient, be aware that any
> disclosure, copying, distribution or use of the contents of this
> information
> is prohibited. If you have received this electronic message in
> error, please
> notify us immediately.
>
>
>
> > -----Original Message-----
> > From: AOLserver Discussion [mailto:[EMAIL PROTECTED]]On Behalf
> > Of Peter M. Jansson
> > Sent: 15 January 2003 22:57
> > To: [EMAIL PROTECTED]
> > Subject: Re: [AOLSERVER] AOLserver 4: Virtual server fix
> >
> >
> > On Wednesday, January 15, 2003, at 05:42 PM, Tim Moss wrote:
> >
> > > localhost 00000000
> > > localhost 00000000
> > >
> > > what does the 00000000 mean?
> >
> > It means:
> >
> > a.) You haven't applied the patch I sent, and
> > b.) You tried to access the server using a hostname of localhost, but
> > localhost was not mapped to any server. You will not get any response
> > from this (ever) unless you apply my patch.
> >
> > Pete.
> >
>