[cgiwrap-users] Forcing all scripts in a dir to use CgiWrap
Brought to you by:
nneul
From: William J.A. B. <bi...@pd...> - 2002-07-31 04:03:47
|
Greetings, I have a vSite on a Cobalt RaQ4 which needs to be able to execute any file in a specific directory regardless of the extension. (Most have no extension.) The Virtual Site Container from httpd.conf is as follows: <VirtualHost 64.42.222.18> ServerName training.xxxxxxx.com ServerAdmin site2 DocumentRoot /home/sites/site2/web RewriteEngine on RewriteCond %{HTTP_HOST} !^64.42.222.18(:80)?$ RewriteCond %{HTTP_HOST} !^training.xxxxxxx.com(:80)?$ RewriteRule ^/(.*) http://training.xxxxxxx.com/$1 [L,R] RewriteOptions inherit AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site2/users/$1/web/$3 #Added by WJAB July 3, 2002 to handle cgi without the .cgi ScriptAlias /cgi/ /home/sites/site2/www/cgi/ AddHandler cgi-wrapper .cgi AddHandler cgi-wrapper .pl AddHandler server-parsed .shtml AddType text/html .shtml </VirtualHost> Having added the script alias, the scripts now execute but the data output is owned by httpd instead of the user. I assume this means that CgiWrap is being bypassed entirely? How can I get CgiWrap to handle files in this directory without the .cgi or .pl extension? (example: 'script' vs. 'script.cgi') Thanks! - Bill --------------------------------- William J.A. Brillinger Precision Design Co. E-Mail: mailto:bi...@pd... Web site: http://www.pdcweb.net |