Jump to content

Recommended Posts

Hi everyone. I'm running apache 2.2.8 in the most recently XAMPP release and am trying to set up a virtualhost using the following code in the httpd.conf file;

 

NameVirtualHost *

 

<VirtualHost *>

ServerName apress

DocumentRoot "C:/Documents and Settings/Ed Barnett/My Documents/Websites/Apress">

</VirtualHost>

 

This code is right at the bottom of the file. I turn apache on and off without the above code... it even works with "NameVirtualHost *" in the code... but if I include anything more it simply won't allow me to start apache again. Can anyone help?

I can see the reason firstly - bad code... a premature ">" after DocumentRoot was specified.

 

However, I still can't get apache to run again. Help still needed :o(

 

 

Plus now the "localhost" returns the following;

 

 

Bad request!

Your browser (or proxy) sent a request that this server could not understand.

 

If you think this is a server error, please contact the webmaster.

 

Error 400

localhost

04/26/08 19:57:17

Apache/2.2.8 (Win32) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g mod_autoindex_color PHP/5.2.5

Thanks for the reply wildteen. I set up the other virtualhost to point to the original localhost htdocs directory now but the following error comes up which is described in the error log as follows;

 

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

 

In the log : C:/Program Files/xampp/htdocs/xampp/.htaccess: Invalid file path C:\\Program FilesC:\\Program Files\\xampp\\security\\xampp.users

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.