Forum OpenACS Q&A: detail nsunix/nsvhr again
yes, I run thre servers: master, ciao, www.ewayweb.net
The "ciao" and "www.ewayweb.net" configuration files are two that differs in name and port (8001 and 8080) only and they are configures as they work indipendently whithout any modification (no nsvhr module)
in ciao.tcl
httport=8080, hostname=ciao
in dev-ewayweb.tcl
httport=8001, hostname=www.ewayweb.net
The "ciao" and "www.ewayweb.net" configuration files are two that differs in name and port (8001 and 8080) only and they are configures as they work indipendently whithout any modification (no nsvhr module)
in ciao.tcl
httport=8080, hostname=ciao
in dev-ewayweb.tcl
httport=8001, hostname=www.ewayweb.net
ns_section "ns/server/${server}/module/nssock"
ns_param port $httpport
ns_param hostname $hostname
ns_param address $address
The master.tcl file is:
ns_log notice "nsd.tcl: starting to read config file..."
set httpport 80
set hostname master
set address 192.168.198.7
set server "master"
set servername "master master"
set homedir [file dirname [ns_info config]]
set bindir [file dirname [ns_info nsd]]
ns_section "ns/parameters"
ns_param home $homedir
ns_param debug false
ns_param MailHost localhost
ns_param ServerLog ${homedir}/log/${server}.log
ns_param LogRoll on
ns_section "ns/mimetypes"
ns_param default "*/*" ;# MIME type for unknown extension
ns_param noextension "*/*" ;# MIME type for missing extension
#ns_param ".xls" "application/vnd.ms-excel''
ns_section "ns/servers"
ns_param $server $servername
ns_param ewayweb-dev "ewayweb-dev"
ns_param ciao "ciao ciao"
#
# Server parameters
#
ns_section "ns/server/${server}"
ns_param enabletclpages Off
#
# Socket driver module (HTTP) -- nssock
#
ns_section "ns/server/${server}/module/nssock"
ns_param port $httpport
ns_param hostname $hostname
ns_param address $address
ns_section "ns/server/${server}/module/nsvhr/maps"
ns_param "www.ewayweb.net:8001" "http://www.ewayweb.net:8001"
ns_param "www.ewayweb.net" "http://www.ewayweb.net:8001"
ns_param "gloucester" "http://www.ewayweb.net:8001"
ns_param "gloucester:8001" "http://www.ewayweb.net:8001"
ns_param "ciao" "http://ciao:8080"
ns_param "ciao:8080" "http://ciao:8080"
#
# Modules to load
#
ns_section "ns/server/${server}/modules"
ns_param nssock ${bindir}/nssock.so
ns_param nslog ${bindir}/nslog.so
ns_param nsperm ${bindir}/nsperm.so
ns_param nscgi ${bindir}/nscgi.so
ns_param nsvhr ${bindir}/nsvhr.so
ns_log notice "nsd.tcl: finished reading config file."