LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   cgi-bin error 403 in some cases. (http://www.linuxquestions.org/questions/linux-server-73/cgi-bin-error-403-in-some-cases-626380/)

erald 03-07-2008 06:04 AM

cgi-bin error 403 in some cases.
 
Have something really strange going on and hope someone can help me.
Using Apache 2.2.8 on a Centos box.

If I want to execute a script without any extension is works perfectly f I rename the script to ex.. first.pl I get error 403 access denied.
Same thing happens with cgi script, no extension or "-cgi" it works When changing to ".cgi" or ".pl" I get the error.

Since the scripts are called from some programms it is not really easy to change this. On another box with an older version of Apache it works with no problems.

Anyone??

erald 03-08-2008 03:21 AM

OK solved the problem by placing Sethandler cgi-script in the conf file in the directory.

The why is unclear to me. Never had this problem on older version of Apache.


All times are GMT -5. The time now is 02:27 AM.