httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: [users@httpd] apache service not running
Date Mon, 11 Nov 2002 22:17:25 GMT
In a message dated 11/11/2002 6:53:47 PM Eastern Standard Time, writes:

> Good news:
> Apache is finding the file.  It does not yet know how to execute the file, 
> which you need to specify in the config file, but it is finding the file 
> (
> It also sounds like you need to teach Apache what you mean by /cgi-bin/, 
> which means setting the ScriptAlias in your config file.
> Could you copy that portion of your config & post it up here so we can see 
> what we're dealing with?
> >> ----- Original Message ----- 
>> From: <A HREF=""></A> 
>> To: <A HREF=""></A>

>> Cc: <A HREF=""></A>

>> Sent: Monday, November 11, 2002 6:47 PM
>> Subject: Re: [users@httpd] apache service not running
>> In a message dated 11/11/2002 8:38:58 AM Eastern Standard Time, <A HREF="">
>></A> writes: 
>> >>> You might try localhost as your domain, if you are working on that 
>>> machine, 
>>> directly.  You won't need to add that to your conf file, but, you might 
>>> try 
>>> that as the URL and see what it does...   
>> Where should I put this URL? I tried to execute  
>> http:/localhost/cgi-bin/ - this brings up the file download 
>> dialog instead of giving me the ouput of the script in the browser. I also 
>> tried to execute my html script that has in an action field of submit 
>> button ''/cgi-bin/" ( my script which is in cgi-bin 
>> directory of apache). This responds with "page not found" with address 
>> C:/cgi-bin/ I tried to put this script also in the same 
>> directory as my html find and put in the action field "" - 
>> this brings up file download dialog. I tried to put url 
>> http://localhost/cgi-bin/ - this responds with "Invalid 
>> syntax error " from IE - "page cannot be displayed- page ...was renamed or 
>> removed". The apache log does not show any error - IE does. What should I 
>> do, to make apache handle my requests rather than IE is trying to handle 
>> my requests? 
>> Please, help. 
>> Thanks 
>> Sophia 
Thanks all who replied. 
In my config I kept what was there only modifying the variable names for 
which I was prompted during configuration. I added some entries based on the 
discussions I observed in this group emails
Below are the relevant entries from my httpd.conf

My OS is Windows XP. My browser is IE 6.0.2600.0000 .My httpd.conf has the 
following lines ( some of them I edited based on the discussion I viewed in 
this usergroup mail). 
ServerRoot "C:/Program Files/Apache Group/Apache2" 
ServerName localhost 
UseCanonicalName Off 
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs" 
ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache2/cgi-bin/"
<Directory "C:/Program Files/Apache Group/Apache2/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
<Directory "C:/Program Files/Apache Group/Apache2/htdocs"> 
   Options Indexes FollowSymLinks 
   AllowOverride None 
   Order allow,deny 
   Allow from all 

UserDir "C:/Documents and Settings/Owner/My Documents/My Website" 
DirectoryIndex index.html index.html.var 
AccessFileName .htaccess 
ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache2/cgi-bin/" 
# SZ Trying to make cgi scripts work. Adding from usergroup mail: 
<Directory "c:/program files/apache group/apache2/htdocs"> 
 Options +ExecCGI 
# SZ: Adding handler for perl scripts 
   AddType application/x-httpd-cgi .pl .cgi
   AddHandler cgi-script .pl 
<Location /server-status> 
   SetHandler server-status 
   Order deny,allow 
   Deny from all 
   Allow from HEWLETT-GRAP4UX 
<Location /server-info> 
   SetHandler server-info 
   Order deny,allow 
   Deny from all 
   Allow from HEWLETT-GRAP4UX 

Please, help


View raw message