VHOST Konfiguration APACHE 2.2.2 (win32)

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

VHOST Konfiguration APACHE 2.2.2 (win32)

Postby FLAGSHiP » 12. August 2006 00:02

Servus,

also, folgendes:

Apache/2.2.2 (Win32) läuft auf Win 03 Server...

Auf die IP des Servers werden mehrere Domains weitergeleitet....

domain1.de
domain2.net
domain3.com
domain4.org

Ich würde gerne für jede der Domain einn VHOST einrichten, damit diese auch wie gewünscht funktioniert...also...so sieht meine Virtual Host Konfiguration aus:

Code: Select all
NameVirtualHost *:80

# domain1.de
<VirtualHost domain1.de:80>
ServerAdmin flagship@gmx.de
DocumentRoot "c:/program files/xampp/htdocs/domain1.de"
ServerName domain1.de
</VirtualHost>

# entwurf.domain1.de
<VirtualHost entwurf.domain1.de:80>
ServerAdmin mail@host.de
DocumentRoot "c:/program files/xampp/htdocs/domain1_drafts"
ServerName entwurf.domain1.de
ServerAlias entwurf.domain1.de *.entwurf.domain1.de
</VirtualHost>

# domain2.net
<VirtualHost domain2.net:80>
ServerAdmin mail@host.de
DocumentRoot "c:/program files/xampp/htdocs"
ServerName domain2.net
</VirtualHost>

# domain3.com
<VirtualHost domain3.com:80>
ServerAdmin flagship@gmx.de
DocumentRoot "c:/program files/xampp/htdocs/domain3"
ServerName www.domain3.com
</VirtualHost>

# domain4.org
<VirtualHost domain4.org:80>
ServerAdmin mail@host.de
DocumentRoot "c:/program files/xampp/htdocs/domain4"
ServerName domain4.org
</VirtualHost>


Im error Log steht folgendes:
Code: Select all

[Sat Aug 12 00:46:01 2006] [warn] VirtualHost domain3.com:80 overlaps with VirtualHost domain4.org:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Aug 12 00:46:01 2006] [warn] VirtualHost domain2.net:80 overlaps with VirtualHost domain3.com:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Aug 12 00:46:01 2006] [warn] VirtualHost entwurf.domain1.de:80 overlaps with VirtualHost domain2.net:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Aug 12 00:46:01 2006] [warn] VirtualHost domain1.de:80 overlaps with VirtualHost entwurf.domain1.de:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Aug 12 00:46:01 2006] [warn] NameVirtualHost *:80 has no VirtualHosts
[Sat Aug 12 00:46:02 2006] [warn] VirtualHost domain3.com:80 overlaps with VirtualHost domain4.org:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Aug 12 00:46:02 2006] [warn] VirtualHost domain2.net:80 overlaps with VirtualHost domain3.com:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Aug 12 00:46:02 2006] [warn] VirtualHost entwurf.domain1.de:80 overlaps with VirtualHost domain2.net:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Aug 12 00:46:02 2006] [warn] VirtualHost domain1.de:80 overlaps with VirtualHost entwurf.domain1.de:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Sat Aug 12 00:46:02 2006] [warn] NameVirtualHost *:80 has no VirtualHosts

Alle Anfragen werden an den Standart VHOST geleitet...domain1.de...nicht wie beabsichtigt, auf die jeweiligen Verzeichnisse

Ich bin für jeden Ansatz dankbar...

FLAGSHiP

J.H.
Last edited by FLAGSHiP on 28. January 2013 14:41, edited 1 time in total.
Sir, we are surrounded by enemies!
Excelent, so we can fire in any direction now.
FLAGSHiP
 
Posts: 6
Joined: 11. May 2006 09:11

Postby Wiedmann » 12. August 2006 00:19

Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby pc_helferlein » 18. August 2006 13:23

so siehts bei mir aus:

#Main Subdomain Management
NameVirtualHost deine ip

#Main Website #1
<VirtualHost deine ip>
ServerName dein name
DocumentRoot c:/xampp/htdocs/
ErrorLog logs/dein name.-error_log
TransferLog logs/dein name-access_log
</VirtualHost>
pc_helferlein
 
Posts: 27
Joined: 10. July 2006 16:53


Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 15 guests