Welcome to WebmasterWorld Guest from 54.162.248.199

Forum Moderators: phranque

Message Too Old, No Replies

SSI gives an error calling a cgi in protected directory

     
2:57 pm on May 7, 2010 (gmt 0)

10+ Year Member



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?
6:49 pm on May 7, 2010 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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.
3:11 pm on May 12, 2010 (gmt 0)

10+ Year Member



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?
 

Featured Threads

Hot Threads This Week

Hot Threads This Month