You can do this with non-standard ns_register_proxy command which exposes functionality already existing in nsvhr module. Try my patched nsvh2 from: http://www.zjednoczenie.com/upload/aolserver/nsvhr2.tgz When you compile and load nsvhr2.so you should put into library *.tcl file something like this: # note that your page /some/other/page/index.html will be served # from http://foo.bar.com:8080/some/other/page/index.html # not http://foo.bar.com:8080/page/index.html foreach method [list GET HEAD POST] { ns_register_proxy $method /some/other/page/index.html \ http://foo.bar.com:8080 } ns_register_proxy syntax is the same as ns_register_proc I you want even more stuff like this, serach for my posts to the list. Some time ago I had sent to the list a proposal to add such functionality to AOLserver core (along with my single server virtual host extention patch and test cases), but it was ignored by a core team. Recently I've put nsvhr in production enviroment and there are problems with pages served from proxied Apache. I've never seen any problem with proxing AOLserver though. So be carefull, because I'm not sure if nsvhr is really well tested module. Maybe you should use Apache with its ProxyPass directive as frontend server and AOLserver as backend or even something like squid or ?ponds? which was also discussed on this list. --tkosiak
TomaszWhat can I say - it works like a dream. I have installed your modded nsvhr module on my AOLServer development machine and after 5 lines of code (2 foreach loops) it is now reverse proxying one of our live JBoss machines flawlessly (By the way, in this test the two servers aren't on the same box or even in the same building, in fact they aren't even on the same ISP but you can't tell).
It will have to be thoroughly tested but it looks like I will be able to achieve my goal of building some of our required apps in AOLS/Tcl instead of J2EE which will please the boss as Java development is soooo slooooooow.
This is so cool it should be a core feature. Thanks again.
Steve
Steve Manning - Linux Mandrake 9.0 - Gnome 2.0 East Goscote - Leicester - UK +44 (0)116 260 5457 E-Mail: [EMAIL PROTECTED] - Web: www.festinalente.co.uk AIM: verbomania - Public Key: 25665CAF from: wwwkeys.pgp.net There are only 10 types of people in this world Those who understand binary and those who don't |
-- AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.