httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Israel Brewster <isr...@frontierflying.com>
Subject Re: [users@httpd] .cgi as DirectoryIndex?
Date Fri, 11 Apr 2008 16:41:39 GMT
On Apr 10, 2008, at 8:37 AM, Christopher Bianchi wrote:
> Israel,
>
> Use mod_rewrite to redirect requests to a directory to the url of  
> the cgi
> page, including any URL variables that you want.

I was hoping to avoid that solution. My experiences with mod_rewrite  
have been, shall we say, somewhat less than pleasant :) Oh well, It'll  
work. Thanks!

-----------------------------------------------
Israel Brewster
Computer Support Technician
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------
>
>
> Chris
>
> On Wed, April 9, 2008 2:37 pm, Israel Brewster wrote:
>> I have a .cgi script that I would like to use as the DirectoryIndex
>> for a location on my web server, preferably with the trailing ?abc=
>> argument attached (although without would work too). I thought I  
>> might
>> just be able to put the .cgi file as the DirectoryIndex directive for
>> the directory, but that didn't work, failing with an "attempt to
>> invoke directory as script" error. So what would be the easiest way  
>> to
>> make this work? I don't need to hide the .cgi path/arguments from the
>> end user or anything, i'd just like to be able to simply type
>> www.myserver.com/abc
>>  and have the cgi
>> (www.myserver.com/abc/somescript.cgi?someargument=somevalue)
>>  load. Thanks.
>>
>> -----------------------------------------------
>> Israel Brewster
>> Computer Support Technician
>> Frontier Flying Service Inc.
>> 5245 Airport Industrial Rd
>> Fairbanks, AK 99709
>> (907) 450-7250 x293
>> -----------------------------------------------
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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


---------------------------------------------------------------------
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