Welcome to WebmasterWorld Guest from 22.214.171.124 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
SSI gives an error calling a cgi in protected directory Uzil msg:4128795 2:57 pm on May 7, 2010 (gmt 0) Hello everybody. I've a html calling a cgi script witch is fine, but i've decided that the cgi it self should be .htaccess protected. I was expecting that when i call the html i would get the .htaccess prompt window asking for my login but it doesn't. I get an [an error occurred while processing this directive]. Beside changing the site so i'll be able to protect the html with the cgi in, is there a way to turn this arround, in a way that the html still public and only the cgi still protected?
phranque msg:4128936 6:49 pm on May 7, 2010 (gmt 0)
check your server logs for clues on the error. you probably have a syntax error in a server directive. if you want the cgi only to be protected you should move that to an authentication protected directory and remove authentication requirements from the directory containing the html file. Uzil msg:4131408 3:11 pm on May 12, 2010 (gmt 0)
if you want the cgi only to be protected you should move that to an authentication protected directory and remove authentication requirements from the directory containing the html file. That's the way i was suspecting that would work. I did checked my error logs and i've got: ...invalid CGI ref "../cgi-bin/admin/script.cgi" in /home/user/public_html/folder/index.shtml The "admin" directory in the cgi-bin is the protected directory. When I remove the protected directory from the admin folder it works fine but the beavior when protected is the one mention : [an error occurred while processing this directive] My question is: Is this the regular beavior or am I missing something?