[cgiwrap-users] Can't get it to work
Brought to you by:
nneul
From: Sasa E. <se...@di...> - 2007-11-22 03:50:42
|
Hi folks, sorry for the unimaginative subject line, but this is what it boils down to. I have been trying now for 3 days and I just can't it to work. # apache2 -v Server version: Apache/2.2.6 (Debian) Server built: Oct 18 2007 19:07:26 Here are the relevant part of my config: <Macro KundenWebOhneWWW $USERID $DOMAIN $ALIASES> <VirtualHost -ip-:80> DocumentRoot /webs/$DOMAIN/public_html ServerName $DOMAIN ServerAlias $ALIASES ServerAdmin webmaster@$DOMAIN # Aliases for cgi-wrapper ScriptAlias /cgi-bin/ /webs/$DOMAIN/public_html/cgi-bin/ AddHandler cgi-wrapper .cgi AddHandler cgi-wrapper .pl AddHandler cgi-wrapper .rb Action cgi-wrapper /cgi-bin/cgiwrap/$USERID # Rewrite Engine RewriteEngine On RewriteCond %{REQUEST_URI} !^/cgi-bin/ RewriteRule ^/cgi-bin/(.*) /cgi-bin/cgiwrap/$1 [PT] # i would love to get these to work #RewriteRule ^/cgi-bin/(.*) /cgi-bin/cgiwrap/$USERID/$1 [PT] #RewriteRule ^/cgi-bin-d/(.*) /cgi-bin/cgiwrapd/$USERID/$1 [PT] #RewriteRule ^/nph-bin/(.*) /cgi-bin/nph-cgiwrap/$USERID/$1 [PT] #RewriteRule ^/nph-bin-d/(.*) /cgi-bin/nph-cgiwrapd/$USERID/$1 [PT] </VirtualHost> </Macro> The output when I request a file called test.cgi The requested URL /cgi-bin/cgiwrap/kd121/cgi-bin/autoresponder/test.cgi was not found on this server. I have tried so many combinations, but none of them work. If I could at least get a useful error message… I just want to be able to run cgi scripts. I am sure I am doing something stupid. What is the easiest way to get it working? I hope I have given enough information. -sasa |