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 cgipage, 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 mightjust be able to put the .cgi file as the DirectoryIndex directive for the directory, but that didn't work, failing with an "attempt toinvoke directory as script" error. So what would be the easiest way tomake 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
--------------------------------------------------------------------- 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