Hi,
I have big problem with virtual hosts configuration in AolServer 4. I know the idea from http://panoptic.com/wiki/aolserver/98, but I have some question about practical implementation.
I run one big website, for example http://mydomain.com. and I would like to make some subdomains like http://sub1.mydomain.com, http://sub2.mydomain.com, .... , http://sub10.mydomain.com. I know that frontend config file should look like:
source sub1-mydomain.tcl
source sub2-mydomain.tcl
....
source sub10-mydomain.tcl
# Load nssock globally
ns_section ns/modules
ns_param nssock ${bindir}/nssock.so
ns_section ns/module/nssock
ns_param port 80
ns_param hostname mydomain.com
ns_param address 0.0.0.0
# Map headers to server-name
ns_section ns/module/nssock/servers
ns_param sub1-mydomain sub1.mydomain.com
ns_param sub1-mydomain sub1.mydomain.com:80
ns_param sub2-mydomain sub2.mydomain.com
ns_param sub2-mydomain sub2.mydomain.com:80
.....
ns_param sub10-mydomain sub1.mydomain.com
ns_param sub10-mydomain sub1.mydomain.com:80
#Global server parameters
......
My question is what next?
What shall I have in sub1-mydomain.tcl config file and what in frontend.tcl file?
For example I don't want to have separated threads and database pools for each virtual server but in all examples posted to this forum they are in backend files.
What to do with sections specific for server 'ns/server/${servername} ( for example ns/server/${servername}/adp, ns/server/${servername}/fastpath, ns/server/${servername}/tcl ns/server/${servername}/module )? Should I put them to each backend file or could I leave them in frontend file? Because I have many questions about virtual servers could someone post me full working config files where threads and pools are global? I would be very greatfull.
Agnieszka