Discussion Locked

.htaccess and perl

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How do I use .htaccess to allow access to my perl scripts? I think it has something to do with that.

3 replies

by blaine moore

What are you trying to do with it?

If you want to allow people to execute your scripts, then set the file permissions as world writable...there's an article about unix file permissions that just got published today (I read it today anyway) that can explain how to do it...chmod 755 filename should work.

If you want people on the web to log in and be able to read the scripts (but not execute them) then set them only world readable (744) and then use .htaccess to control who can get to that page. You need to set up a password file (I use .htpasswd in the ~user/.htaccess/ dir) and then in the directory you want to protect put the .htaccess file that points at your password file. Hope this helped.

This discussion is closed to new replies.