logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: CGI path appears wrong but looks correct
Author
88guy



Joined: 05 Nov 2011
Posts: 1
Location: USA

PostPosted: Sat 05 Nov '11 23:07    Post subject: CGI path appears wrong but looks correct Reply with quote

I just installed a LAMP server on XP for testing things (at work) - I run one from my home using Linux, but apparently I'm missing something on XP. Everything works - MySQL, PHP, etc. - but when I try to access my script-aliased directory I get a "page not found" error and the logs make it look like a path is incorrect - but looking at my httpd-vhosts.conf file they look right. The relevant area in my config file looks like this:
Code:

DocumentRoot "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs"
ScriptAlias /cgi-bin/ "C:\Program Files\Apache Software Foundation\Apache2.2\cgi-bin"
ErrorLog "logs/error.log"
CustomLog "logs/access.log" combined
Servername www.webputzer.com
ServerAlias webputzer.com

# CGI-BIN 
    <Directory "C:\Program Files\Apache Software Foundation\Apache2.2\cgi-bin">
      AllowOverride all
      Options ExecCGI
      Order allow,deny
      Allow from all
     </Directory>


I'm trying to hit a file in a cgi-bin sub-directory called "axs". I get the following in my logs, which looks like a path problem (no slash between the final folders):
Code:
not found or unable to stat: C:/Program Files/Apache Software Foundation/Apache2.2/cgi-binaxs


Can anyone tell me what I am missing, here....?

Thanks
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7364
Location: Germany, Next to Hamburg

PostPosted: Sun 06 Nov '11 0:03    Post subject: Reply with quote

Your script alias is missing a \ (backslash) at the end of the real path.
Back to top


Reply to topic   Topic: CGI path appears wrong but looks correct View previous topic :: View next topic
Post new topic   Forum Index -> Apache