[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] [RaQ4] cgi-wrap for files with no .cgi or .pl Solution!
- Subject: [cobalt-users] [RaQ4] cgi-wrap for files with no .cgi or .pl Solution!
- From: "William J.A. Brillinger" <billy@xxxxxxxxxx>
- Date: Mon Aug 5 14:17:01 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
Good day,
How can I setup CgiWrap for a vsite that does not require the .cgi or .pl
in the script name?
All scripts are located in a directory called /cgi/
For the Archives...
based on this info:
http://cgiwrap.unixtools.org/quickref.html
I created a sym-link from /home/sites/site18/users/wm_canpool/web/cgi/ to
/home/sites/site18/web/cgi and chowned it to my user wm_canpool
This url now executes under CgiWrap correctly at...
http://test.domain.tld/cgiwrapDir/cgiwrap/~wm_canpool/cgi/scriptname
...or debug in mode:
http://test.domain.tld/cgiwrapDir/cgiwrapd/~wm_canpool/cgi/scriptname
Now I just need to rewrite so it uses this convention for
http://test.domain.tld/cgi/scriptname
This is the rewrite rule I came up with...
RewriteRule ^/cgi/(.*) /cgiwrapDir/cgiwrap/~wm_canpool/cgi/$1 [PT]
I inserted this into httpd.conf after the last rewrite rule in the Virtual
Site Container for the site it is to be used in.
It's clumsy but it works!
- Bill
---------------------------------
William J.A. Brillinger
Precision Design Co.
E-Mail: mailto:billy@xxxxxxxxxx
Web site: http://www.pdcweb.net