Re: [AOLSERVER] ns_rewriteurl virtual hosting module

2007-02-28 Thread Thorpe Mayes
Tom, I really appreciate your help with this. Here is my solution. It seems to work so far. I altered the code in rewriteurl.tcl to the following: ns_log Notice tcl/rewriteurl.tcl: loading test rewrite filters... proc rewriteRequest { why } { set url [ns_conn url]

Re: [AOLSERVER] ns_rewriteurl virtual hosting module

2007-02-28 Thread Tom Jackson
Thorpe, First question is how many virtual hosts? Second is how busy? The simple virtual server was an example of a no-configuration virtual server. It relies entirely on correctly setup DNS. I have written several other virtual servers (tclvhr and vat) which have slightly different features,

[AOLSERVER] ns_rewriteurl virtual hosting module

2007-02-27 Thread Thorpe Mayes
I am trying to install nsrewrite aolserver module and use it in the virtual hosting module per Tom Jackson (http://rmadilo.com/files/nsrewrite/doc/nsrewriteurl.html) . I downloaded the nsrewrite files and did the install. Here is the result of the install: make install /usr/local/bin/tclsh8.4

Re: [AOLSERVER] ns_rewriteurl virtual hosting module

2007-02-27 Thread Tom Jackson
Thorpe, Looks like you have not added nsrewrite.so to the list of modules to load. tom jackson On Tuesday 27 February 2007 12:32, Thorpe Mayes wrote: I am trying to install nsrewrite aolserver module and use it in the virtual hosting module per Tom Jackson

Re: [AOLSERVER] ns_rewriteurl virtual hosting module

2007-02-27 Thread Tom Jackson
Thorpe, Also, if you continue to have problems, please append this script to your startup, or run from a tcl/adp page to post your config. It is so easy to think things are set one way, and it is impossible to know for sure unless you look: # Place this at the end of the startup script (the

Re: [AOLSERVER] ns_rewriteurl virtual hosting module

2007-02-27 Thread Thorpe Mayes
Tom, Thank you. I fixed the nsd file so that the nsrewrite module loads...and, it does load. I modified the /etc/hosts file to look like this: 127.0.0.1 tmayes www.tmayes thorpemayes www.thorpemayes localhost.localdomain localhost I added these two folders under $pageroot:

Re: [AOLSERVER] ns_rewriteurl virtual hosting module

2007-02-27 Thread Tom Jackson
Thorpe, Not sure exactly, I wrote the code you are using as an example only, although it seems to work. You could take the short route and do this: Maybe put a logging statement inside the filters so that we know they fire. You can also test urls directly /www.xyc/, etc. This should at least