httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amadej Bukorovic" <apache-l...@minet.si>
Subject RE: [users@httpd] Apache Configuration....
Date Thu, 24 Oct 2002 07:27:28 GMT
Hello
I`m not a rewrite module expert but something like this would work (as
long as you have mod_rewrite installed and a cgi-bin set up):
RewriteEngine On
RewriteCond %{HTTP_HOST}    ^www\.foo\.com
RewriteCond %{REQUEST_URI}	!/cgi-bin/foo1\.exe
RewriteRule /.*     http://www.foo.com/cgi-bin/foo1.exe [L,R]


You could also throw away the first RewriteCond if you wanted it to
apply to all requests not depending on what host it was made too...
should work I think :)

Regards,
Amadej.
> -----Original Message-----
> From: mail.earthlink.net [mailto:bedouglas@earthlink.net]
> Sent: Thursday, October 24, 2002 3:31 AM
> To: users@httpd.apache.org
> Subject: [users@httpd] Apache Configuration....
> 
> Hi...
> 
> Is there an easy/simple way to configure Apache to force every/any
request
> to the root to a specific CGI app in a given folder/directory?
> 
> IE:	www.foo.com would actually be redirected, causing
f:\test\foo1.exe
> to be
> run.
> 
> 
> Thanks
> 
> Bruce
> bedouglas@earthlink.net
> 
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message