You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by timuel <ti...@voicenet.com> on 2002/08/17 23:36:05 UTC

apache2 / 403 when executing remote CGI`s

Hey,

I have 2 DNS->RR load-balanced sol8 sparc machines just for serving up www.users.mydomain.com/~NIS+user accounts and am trying apache2 (Apache/2.0.39) on one of these boxes for testing purposes. We do not permit "/~" type accounts to run CGI scripts therefore we have a few basic ones set up for them on another 1.3.26 box -- one of which is a counter that is accessed via HTML 'img src' tags like such:

"<img src="http://scripts.mydomain.com/cgi-bin/hitcounter.cgi?var=value&var=value">"

The apache2 box is giving the ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var page. I couldn`t find anything relevant in the httpd.conf, nor in the archives. I`m assuming that there`s just one simple directive somewhere... Any help would be greatly appreciated.

--
timuel

"The problem with people who have no vices is that generally you can be
pretty sure they're going to have some pretty annoying virtues."


Re: apache2 / 403 when executing remote CGI`s

Posted by Joshua Slive <jo...@slive.ca>.
timuel wrote:
> src="http://scripts.mydomain.com/cgi-bin/hitcounter.cgi?var=value&var=val
> 
> <http://scripts.mydomain.com/cgi-bin/hitcounter.cgi?var=value&var=val>ue">"
> 
>>>The apache2 box is giving the ErrorDocument 403
>>>/error/HTTP_FORBIDDEN.html.var page. I couldn`t find anything relevant
>>>in the httpd.conf, nor in the archives. I`m assuming that there`s just
>>>one simple directive somewhere... Any help would be greatly appreciated.
>>
>>What does the error log on the server hosting the cgi say?
>>
> Nada. Nor does the access log.

Hmmm... Seems rather unlikely, unless something went terribly wrong.

I'd start by upgrading to the latest release of Apache 2, to make sure 
you aren't being hit by a fixed bug.  Next, I'd try requesting the 
hitcounter cgi directly, without using an <img src>.

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: apache2 / 403 when executing remote CGI`s

Posted by timuel <ti...@voicenet.com>.
----- Original Message -----
From: "Joshua Slive" <jo...@slive.ca>
> timuel wrote:
>
> > "<img
> >
src="http://scripts.mydomain.com/cgi-bin/hitcounter.cgi?var=value&var=val
> >
<http://scripts.mydomain.com/cgi-bin/hitcounter.cgi?var=value&var=val>ue">"
> >
> > The apache2 box is giving the ErrorDocument 403
> > /error/HTTP_FORBIDDEN.html.var page. I couldn`t find anything relevant
> > in the httpd.conf, nor in the archives. I`m assuming that there`s just
> > one simple directive somewhere... Any help would be greatly appreciated.
>
> What does the error log on the server hosting the cgi say?
>

Nada. Nor does the access log.

--
timuel

> Joshua.
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: apache2 / 403 when executing remote CGI`s

Posted by Joshua Slive <jo...@slive.ca>.
timuel wrote:

> "<img 
> src="http://scripts.mydomain.com/cgi-bin/hitcounter.cgi?var=value&var=val 
> <http://scripts.mydomain.com/cgi-bin/hitcounter.cgi?var=value&var=val>ue">"
>  
> The apache2 box is giving the ErrorDocument 403 
> /error/HTTP_FORBIDDEN.html.var page. I couldn`t find anything relevant 
> in the httpd.conf, nor in the archives. I`m assuming that there`s just 
> one simple directive somewhere... Any help would be greatly appreciated.

What does the error log on the server hosting the cgi say?

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org