Apache fails to start with Virtual Hosts

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Apache fails to start with Virtual Hosts

Postby gambler » 09. December 2007 00:36

Hey all!

I have been having trouble with Xampp and VirtualHosts.

Whenever I add a virtual host, other than localhost, apache refuses to start and stalls on "Apache Started [Port 80]" but the "Running" box never pops up and I cannot access my local site.

Gibberish:

Code: Select all
Firefox can't establish a connection to the server at localhost.


There are no entries in the apache error log or access log for any dates after I started having this problem.

Please help!
-Gambler
gambler
 
Posts: 3
Joined: 09. December 2007 00:20

Postby Izzy » 09. December 2007 01:04

We can only imagine what your httpd-vhost.conf file looks like or even what the results are after typing apache -S at the prompt in a command console inside the xampp\apache\bin directory.


===========================================
1. The new DeskTopXampp Launch Control for XAMPP / XAMPPlite
Posted by Ridgewood available from Ridgewood'sDTX web site

2. Build Rich AJAX Applications - Faster
TIBCO General Interface Pro Edition but FREE and Open Source
Fully working with NO donations required to get a user/password
===========================================
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby gambler » 09. December 2007 01:18

I thought everyone had an amazing imagination!

Here is the offending code:


httpd-vhost.conf
Code: Select all
NameVirtualHost 127.0.0.1:80

<VirtualHost 127.0.0.1:80>
  DocumentRoot C:/xampp/htdocs/
  ServerName localhost
</VirtualHost>

<VirtualHost 127.0.0.1:80>
   DocumentRoot C:/Users/James/WebProjects/Tennis/webroot/
   ServerName tennis.local
   ErrorLog C:/Users/James/WebProjects/Tennis/logs/tennis_error_log
   CustomLog C:/Users/James/WebProjects/Tennis/logs/tennis_access_log common
</VirtualHost>


And the quote from my good friend apache.exe -S
Code: Select all
C:\xampp\apache\bin>apache.exe -S
Syntax error on line 55 of C:/xampp/apache/conf/extra/httpd-vhosts.conf: CustomLog takes two or three arguments, a file name, a custom log format string or format name, and an optional "env=" clause (see docs)
(That was retyped, so ignore obvious typos).
gambler
 
Posts: 3
Joined: 09. December 2007 00:20


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 57 guests