VirtualHosts

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

VirtualHosts

Postby Yana » 03. July 2003 09:44

I can't set Virtual Hosts in windows XP...
I had Apache 1.32.... on win Me. Now I have changed system to XP and download Wampp. So I copied Virtual hosts from old httpd.conf. It doesn't work.
Help me please!!!
Yana
 

Postby Oswald » 03. July 2003 11:12

Dear Yana,

could you please post your <VirtualHost> container? It would be much easier for us to find the error.

Greetings,
Oswald
User avatar
Oswald
Apache Friends
 
Posts: 2718
Joined: 26. December 2002 19:51
Location: Berlin, Germany
Operating System: Linux

Postby Yana » 04. July 2003 16:22

NameVirtualHost 127.0.0.4
<VirtualHost xenodohos>
ServerName xenodohos
ServerAdmin aaa@xenodohos.gr
DocumentRoot "E:/users/xenodohos/www"
ErrorLog "E:/users/xenodohos/error.log"
CustomLog E:/users/xenodohos/access_log common
</VirtualHost>
Yana
 

did you try apache.exe -S ?

Postby chanio » 06. July 2003 02:47

:oops: Did you try going at ..Wampp2\apache\bin\ and at a command prompt typing the following?
apache -S
That should diagnose if something of your VirtualHost is badly written...
The worst is when it says that..."Syntax Ok" , right?
Hope it helps!
Gallactic Firewall
User avatar
chanio
 
Posts: 72
Joined: 18. March 2003 22:05
Location: Argentina

Postby Oswald » 06. July 2003 12:01

Dear Yana!

Your config looks fine. Did the hostname xenodohos resolves to 127.0.0.4? Please call ping xenodohos at your command prompt. You should see something like this:

Code: Select all
C:\>ping xenodohos

Ping xenodohos [127.0.0.4] mit 32 Bytes Daten:

Antwort von 127.0.0.4: Bytes=32 Zeit<10ms TTL=128
Antwort von 127.0.0.4: Bytes=32 Zeit<10ms TTL=128
Antwort von 127.0.0.4: Bytes=32 Zeit<10ms TTL=128
Antwort von 127.0.0.4: Bytes=32 Zeit<10ms TTL=128

Ping-Statistik für 127.0.0.4:
    Pakete: Gesendet = 4, Empfangen = 4, Verloren = 0 (0% Verlust),
Ca. Zeitangaben in Millisek.:
    Minimum = 0ms, Maximum =  0ms, Mittelwert =  0ms

C:\>


Greetings,
Oswald
User avatar
Oswald
Apache Friends
 
Posts: 2718
Joined: 26. December 2002 19:51
Location: Berlin, Germany
Operating System: Linux

Postby Yana » 24. July 2003 07:33

I understood there is a problem to find "hosts" file in Windows XP. Apache server says: Cannot resolve host name xenodohos --- ignoring!
Yana
 

Postby Oswald » 24. July 2003 10:48

Dear Yana!

You should find you hosts file under c:\windows\system32\drivers\etc\

Try to insert the following line to this file

127.0.0.4 xenodohos

And start Apache again.

Good luck,
Oswald
User avatar
Oswald
Apache Friends
 
Posts: 2718
Joined: 26. December 2002 19:51
Location: Berlin, Germany
Operating System: Linux

Postby Yana » 25. July 2003 12:38

Thank you VERY MUCH!!! It was my fault. I have made an error in hosts file. :oops: And so I had an idea it's a wrong file...

Sorry
Yana
 


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 157 guests