Re: [cgiwrap-users] Can't get it to work
Brought to you by:
nneul
From: Neulinger, N. <nn...@um...> - 2007-11-22 14:52:26
|
I think your scriptalias stuff is conflicting with your action+rewrite rules... Try to get just one of them working. Make sure you can get the base cgiwrap syntax working with ScriptAlias first, so you would use a URL: /cgi-bin/cgiwrap/userid/scriptname to run the script ~userid/public_html/cgi-bin/scriptname if you used the default config for script base dir.=20 -- Nathan =20 ------------------------------------------------------------ Nathan Neulinger EMail: nn...@um... University of Missouri - Rolla Phone: (573) 341-6679 UMR Information Technology Fax: (573) 341-4216 > -----Original Message----- > From: cgi...@li... [mailto:cgiwrap- > use...@li...] On Behalf Of Sasa Ebach > Sent: Wednesday, November 21, 2007 9:51 PM > To: cgi...@li... > Subject: [cgiwrap-users] Can't get it to work >=20 > Hi folks, >=20 > 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. >=20 > # apache2 -v > Server version: Apache/2.2.6 (Debian) > Server built: Oct 18 2007 19:07:26 >=20 > Here are the relevant part of my config: >=20 > <Macro KundenWebOhneWWW $USERID $DOMAIN $ALIASES> > <VirtualHost -ip-:80> > DocumentRoot /webs/$DOMAIN/public_html > ServerName $DOMAIN > ServerAlias $ALIASES > ServerAdmin webmaster@$DOMAIN >=20 > # 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 >=20 > # Rewrite Engine > RewriteEngine On > RewriteCond %{REQUEST_URI} !^/cgi-bin/ > RewriteRule ^/cgi-bin/(.*) /cgi-bin/cgiwrap/$1 [PT] >=20 > # 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] >=20 > </VirtualHost> > </Macro> >=20 >=20 > The output when I request a file called test.cgi >=20 > The requested URL /cgi-bin/cgiwrap/kd121/cgi- > bin/autoresponder/test.cgi was > not found on this server. >=20 > 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. >=20 > I am sure I am doing something stupid. What is the easiest way to > get it > working? I hope I have given enough information. >=20 > -sasa >=20 > ------------------------------------------------------------------- > ------ > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > cgiwrap-users mailing list > cgi...@li... > https://lists.sourceforge.net/lists/listinfo/cgiwrap-users |