homepage Welcome to WebmasterWorld Guest from 54.197.110.151
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

    
SSI gives an error calling a cgi in protected directory
Uzil

10+ Year Member



 
Msg#: 4128793 posted 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

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



 
Msg#: 4128793 posted 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

10+ Year Member



 
Msg#: 4128793 posted 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?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved