Forum OpenACS Development: Re: Virtual hosting with AS4 and OpenACS 5

Collapse
Posted by xx xx on
Yes, this really helped a bunch.

I just ran into trouble when commenting out section "ns_section ns/server/${server}/module/nssock". So I suppose that wasn't optimal (when using the chat package)

If one wants to run another virtual server on another port (8080) just add to frontend.tcl:

------------------------------------------------

source service1.tcl
#set ns/servers in the backend file service1.tcl
    #ns_section ns/servers
    #ns_param  service1 "Development site"

ns_section ns/modules
ns_param  nssock8080      ${bindir}/nssock.so

ns_section ns/module/nssock8080
ns_param  port            8080
ns_param  hostname        mydomain.nl
ns_param  address        0.0.0.0
ns_param  maxinput        [expr 8000 * 1024]
ns_param  timeout        120

ns_section ns/module/nssock8080/servers
ns_param  service1      mydomain.nl:8080