Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cgi-bin problem

Status
Not open for further replies.

crackn101

Programmer
Dec 27, 2002
63
US
Hi guys.
I did try to search this b4 i posted, but it seems the search engine is down temporarily.
My site is setup using apache on windows box.
The std cgi-bin in the root does work just fine.
I have created a password protected directory and
placed a 2nd cgi-bin inside of it.
This second cgi-bin is the one that i keep getting
a forbidden error. This is on windows so, no chmod.

ScriptAlias /cgibin/ "C:/Apache/Apache2/htdocs/ntg/cgibin/"

<Directory "C:/Apache/Apache2/htdocs/ntg/cgibin">
AllowOverride all
Options ExecCGI
Order allow,deny
Allow from all
</Directory>

i've tried various combinations but can't seem to find what it wants.
From localhost, i launch the site, hit the protected page,
and authenticate with no errors.
When, from the protected page, i click a link for the perl script, that's when it tells me forbidden.
I realise that this is cgibin and not cgi-bin.
That's because the htdocs dir has a cgi-bin folder
with a <directory> and ScitpAlias defined.
I figured could not have duplicates.
Hope this makes sense.
Thanks for any suggestions.

 
What does your error log say when you try to access 'cgibin'?
 
Hi Siberian.
I guess that would be helpful. :) Sorry.

client denied by server configuration: C:/Apache/Apache2/htdocs/ntg/cgibin/pricing.pl

 
Hi Sieberian.
I just figured it out. That was kinda my stupid.
I was looking through the http.conf file,
and found a directive that would block files access
to .exe .dll .sys etc and listed as well was .pl
My bad.
Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top