Re: .cgi as DirectoryIndex?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Israel,

Use mod_rewrite to redirect requests to a directory to the url of the cgi
page, including any URL variables that you want.

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@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux