- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsHi Guys,
I am having issues trying to figure out redirecting /cgi-bin or /script-path to a index.cgi page, as this is an Alias it appears to executing the directory as a script per the apache logs.
[Thu Oct 29 21:04:57 2009] [error] [client x.x.x.x] attempt to invoke directory as script: /usr/lib/cgi-bin/script_pa
What I'm wanting to know:
-Is there any way to get this working easily with mod_rewrite
-If not is mod_rewrite the solution and how would I rewrite a directory to a sript and JUST a directory not every file within it.
This question is in progress.
Our experts are working on an answer right now.
Sign up for immediate access to the solution once it becomes available.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: caterham_wwwPosted on 2009-10-31 at 15:29:36ID: 25711850
Well, in general you should fix the problem rather than working-arround with mod_rewrite.
th/ which is a directory.
Something sets the cgi handler for the filename /usr/lib/cgi-bin/script_pa
That could be done either by a ScriptAlias or SetHander directive but not by the code you've posted since none of them is present. Further, since the handler was set the DirectoryIndex won't fire.