SunQuest
 
           Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old July 18th, 2005, 11:43 AM
Sir_NutS Sir_NutS is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 1 Sir_NutS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 48 m 5 sec
Reputation Power: 0
Apache Virtual Hosts - 400 Error

Hello, I was wondering if somebody out there could help me with this problem:

I just installed apache, it came along with the xampp control panel 1.0. Its the first time I'm using it so I leave it with all the defaults. I went to http://localhost/ and it worked perfectly, but now I want to add a virtualhost so I could test a website, but I want to leave that localhost intact. I made this changes to the config file in the vhosts section:
Code:
NameVirtualHost *
<VirtualHost *>
DocumentRoot c:/apachefriends/xampp/htdocs
ServerName localhost
</VirtualHost>

<VirtualHost *>
DocumentRoot c:/apachefriends/xampp/htdocs/hds
ServerName hds
</VirtualHost>


In the global config, I left all the defaults, which set the following for the serveroot:

ServerRoot "c:/apachefriends/xampp/apache"

and documentroot:

DocumentRoot "c:/apachefriends/xampp/htdocs/hds"

Now, when I try to go to http://localhost/ it gives me an error 400 page, saying:

"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
07/18/05 11:25:15
Apache/2.0.54 (Win32) mod_ssl/2.0.54 OpenSSL/0.9.7g PHP/5.0.4 "

If I try to access http://hds/ it gives me a "Cannot find server or DNS Error"

if I revert to the default settings, that is, without the Vhosts and only localhost it works well, what could be wrong here?

Reply With Quote
  #2  
Old July 19th, 2005, 08:20 AM
TrashOverride TrashOverride is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Location: Bulgaria
Posts: 10 TrashOverride User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 50 m 49 sec
Reputation Power: 0
Send a message via ICQ to TrashOverride
i'm a nubie but did u try to put 127.0.0.1/localhost/ insted of *?

Reply With Quote
  #3  
Old September 6th, 2005, 09:50 PM
greatbotboy greatbotboy is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 1 greatbotboy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 m 9 sec
Reputation Power: 0
Quote:
Apache/2.0.54 (Win32) mod_ssl/2.0.54 OpenSSL/0.9.7g PHP/5.0.4 "


open your config and disable ssl that might just be your problem I know on some versions apache ssl didn't work with virtual hosts so try that then get back at me.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > Apache Virtual Hosts - 400 Error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway