httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Luckhurst <>
Subject Re[2]: [users@httpd] Xampp Apache on win 2003. Problem with setting up a Virtual Host
Date Wed, 21 Mar 2007 03:20:06 GMT
Hi Sander,

Thanks for your help and your explanations.

>> When I try and start Apache it fails and refuses to start with  
>> nothing in the log files.

ST> Look in the Applications section in the Windows Event Viewer. That is  
ST> where Apache logs before it opens its own log files.

There is nothing at all in the Application section of the Windows Event Viewer
related to Apache.

>> [Wed Mar 21 13:09:54 2007] [crit] (22)Invalid argument: unable to  
>> replace stderr with error_log

ST> What is your ServerRoot? Does the logs directory exist under that  
ST> ServerRoot?

The Server Roor (in httpd.conf) is

ServerRoot "C:/Program Files/xampp/apache"

That does contain a logs folder and contains the standard error and access logs.
There is no sign of the logs created by the virtual host.

If I uncomment the logs in the Virtual Host then Apache will not start.

>> I do not understand the no VirtualHosts message in the error log.

ST> Your VirtualHost header needs to match the NameVirtualHosts  
ST> directive.  Try

ST> <VirtualHost>
ST>    ServerName
ST>    ...
ST> </VirtualHost>

Fair enough. I have changed the header as you suggest and when I restart Apache
I no longer see the message about no virtual hosts.

>> I also do not understand the client denied message.

ST> Once you commented out the <Directory> stanza, the Options Indexes  
ST> went away, and if directories higher in the hierarchy don't have  
ST> Indexes defined, it'll deny a request for the generated directory  
ST> index.  I would serve index.html, were there one.

OK. That makes sense.

I currently have the httpd-vhosts.conf as follows


DocumentRoot "C:/www/docs"
DirectoryIndex index.html index.php index.htm

#ErrorLog logs/print-error.log
#CustomLog logs/print-access.log

<Directory "C:/www/cgi-bin">
AddHandler cgi-script .cgi
AllowOverride Options FileInfo AuthConfig Limit
Options Indexes Includes ExecCGI MultiViews
Order allow,deny
Allow from all


I can restart Apache like this and I get no errors or warnings other than

[Wed Mar 21 14:13:09 2007] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Wed Mar 21 14:13:09 2007] [crit] (2)No such file or directory: unable to replace stderr with
[Wed Mar 21 14:13:13 2007] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Wed Mar 21 14:13:13 2007] [crit] (2)No such file or directory: unable to replace stderr with

If I try to access either or I
get the 403 error

Access forbidden!
You don't have permission to access the requested directory.
There is either no index document or the directory is read-protected.

If I comment out the Include conf/extra/httpd-vhosts.conf directive and restart
Apache I can see the site no problems.

I would appreciate any further help

Richard Luckhurst
Product Development
Exodus Systems - Sydney, Australia.
Tel: (+612) 4751-9633
Fax: (+612) 4751-9644
Exodus Systems - Smarter Systems, Better Business

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message