How do I enable CGI or Perl script execution in directories other than the ScriptAlias?

Updated -

This is undoubtedly the number one question people ask about Apache. The answer is to persuade Apache to execute scripts in other locations, such as in directories where normal documents may also live, you must tell it how to recognize them - and also that it's okay to execute them. For this, you need to use the AddHandler directive.

You probably have a Virtual Host directive where you'...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In