hi,
i am trying to give web interface for ns_vhr command, so that i can add ,delete get virtual hosts at runtime .
for this i had written a small tcl file that contains only ns_vhr update command . i can not run it on slave server since it doesn't have ns_vhr module loaded.(i got the error message unknown command when i tried it earlier)
so i tried it to run on master server . surprisingly (for me) it is not serving pages although i configured the master config file for web page root and several sections to deal with adp and tcl pages. can't we serve tcl/adp pages from master server in this situation... master server root is at /web/master/ and www contains index.adp, index.tcl ,test.tcl(it contains the command )
Yes, as I recall you're right about that. The nsvhr module master complete takes over the entire urlspace in the master so you cannot serve pages (apart from errors) from the master. I think. You may need to look at the code or experiment but you may be able to use a registered proc to server pages.
Apart from that your options are to hack the code and modify nsvhr to only take over a part of the urlspace, or better, to have the master register for some urlspace that it will serve.
Jerry
Madhu Sudhana Rao
> From: Jerry Asher > Reply-To: AOLserver Discussion > To: [EMAIL PROTECTED] > Subject: Re: [AOLSERVER] ns_vhr command not working from a .tcl script > for > me > Date: Wed, 5 Mar 2003 09:04:29 -0800 > > madhusudhanarao sunkara wrote: > >> hi, >> >> ns_vhr command is not working for me, when it is embedded in .tcl script >> the server is responding with error something like >> invalid command name ns_vhr update ...... >> but when i tried it with nscp it is working . is it restricted for >> server control port admin .. >> what changes shall i make to my tcl script to work > > > This is surprising to me, but then I am not sure I ever used it from > anything other than the nscp command line. I love the nscp command > line. (Back when I was a kid, we had to wget | cat all of our web > pages.) > > I haven't looked at this code in more than a year, and, I am trying not > to use it now in fact. I don't have time to look at it now. > > A first glance at the code itself, and I don't see anything that should > restrict it to just the control port. Also, "invalid command" does not > appear in the code, although "unknown command" does. > > Best of luck, I am interested in knowing what you find out. > > > Jerry >
I. To remove yourself from this list:
Send a message to "[EMAIL PROTECTED]" with the following text in the BODY of your message:
signoff aolserver
II. For a complete list of listserv options please visit:
http://listserv.aol.com/
III. For more AOLserver information please visit:
http://www.aolserver.com/
