Jump to content

CGI Problem?


pkallberg21

Recommended Posts

Hello!

 

I am having trouble my Apache webserver to work with CGI, so it would be nice if someone could help me get it up and running. I have followed this guide so far:

 

http://www.thesitewizard.com/archive/addcgitoapache.shtml

 

When I try to enter the cgi proxy url, I get this:

 

Forbidden

 

You don't have permission to access /cgiproxy/nph-proxy.cgi/010110A/x-proxy/start on this server.

Is this something to do with permissions, or have I done something wrong with the CGI installation?

 

Checking through the logs, it seems as though there is a problem with permissions. Here is an extract of when I try to access the cgi file:

[Tue Jul 17 00:08:33 2007] [error] [client ***IP***] "use" not allowed in expression at D:/Program Files/Apache Software Foundation/Apache2.2/htdocs/cgiproxy/nph-proxy.cgi line 151, at end of line\r, referer: http://***IP***/

[Tue Jul 17 00:08:33 2007] [error] [client ***IP***] syntax error at D:/Program Files/Apache Software Foundation/Apache2.2/htdocs/cgiproxy/nph-proxy.cgi line 151, near "use strict "\r, referer: http://***IP***/

[Tue Jul 17 00:08:33 2007] [error] [client ***IP***] BEGIN not safe after errors--compilation aborted at D:/Program Files/Apache Software Foundation/Apache2.2/htdocs/cgiproxy/nph-proxy.cgi line 152.\r, referer: http://***IP***/

What do I have to edit in the conf file to allow access to this file?

 

Link to comment
Share on other sites

Looks like there is a problem with the script, and that is why you get the aborted message in the error logs.  However, that type of problem is using followed my a client response of internal server error.  I'm not sure why you are getting a forbidden message.  Is that all there is in the log file, or is there another message that says client denied?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.