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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

htaccess

Status
Not open for further replies.

Masali

Programmer
Jun 19, 2002
143
SE
I know that it is possible to set a extension like .pl to be run as cgi-scripts using
AddHandler cgi-script .pl
but is it possible to make files with no extension running as cgi-scripts and all other files (.html, .htm, .jpg etc) running like usual in a specified directory?

Thanks in advance

Masali
 
Hi again,

It would also (i guess) be sufficent with some htaccess-snippet defining a single file (e.g. test.pl) to be run as a cgi-script. If that is easier i mean?

Masali
 
Something like this should work:
Code:
<Files &quot;test.pl&quot;>
    SetHandler cgi-script
</Files>
//Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top