Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.htaccess and running scripts

Status
Not open for further replies.

hermes1

Programmer
Oct 22, 2003
38
US
I have in my .htaccess file the standard lines


AddHandler cgi-script .pl .cgi
Options +ExecCGI


But our site gets more and more popular and i was wondering if there is a way to basically allow cgi scripts to run anywhere without this in .htaccess to free up some overhead. Is this possible in apache by changing a conf file or something else.
 
Sure, just use a location directive

Code:
<Location />
        Options ExecCGI
</Location>

That allows cgi to run anywhere, just put the addhandler in the global configuration file up top with the other addhandler commands.
 
Great do i put that in httpd.conf? Thank You
 
You put the location directive in your virtual host(or httpd.conf if your using the default vhost).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top