|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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? |
|
#2
|
|||
|
|||
|
i'm a nubie but did u try to put 127.0.0.1/localhost/ insted of *?
|
|
#3
|
|||
|
|||
|
Quote:
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. |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > Apache Virtual Hosts - 400 Error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|