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

Perl and .htaccess

Status
Not open for further replies.

LucL

Programmer
Jan 23, 2006
117
US
Is it possible to setup .htaccess file so that something like


will run the perl script "profile" and pass user=something as paramater, without having the .pl

I can run it just fine with the .pl, but not without. Any idea what to overwrite in the .htaccess file to execute perl files like that? Or is it unsafe?

Thanks,
Luc L.
 
You might be able to make a file at /profile/index.pl and add ".pl" as an index extension, or name it index.cgi which is usually a default extension on servers which support Perl.

(I did this to put a dynamic image on MySpace when it normally blocks them by making a file at "/image.gif/index.cgi" and just referring to "image.gif", since the HTML code for it looks legit when it's actually a CGI :p )
 
Kirskle. Any idea on how to make index.pl or index.cgi an index extension on my Linux Redhat box?

linux.cgi unfortunately isn't it.

Thanks,
Luc L.
 
Ok, I figured it out. Thanks for pointing me in the right direction Kriskle.

Had to edit httpd.conf and insert index.pl into DirectoryIndex setting line.

Works like a charm.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top