also es geht darum: ich hab eine feste ip. und ueber diese ip muessen ca 20 domains laufen (alle ueber den port 80)
wenn ich aber den code wie unten einbau, kommt diese meldung:
- Code: Select all
[Tue Apr 27 23:22:15 2004] [warn] VirtualHost yyy.de:80 overlaps with VirtualHost xxx.de:80, the first has precedence, perhaps you need a NameVirtualHost directive
- Code: Select all
NameVirtualHost *:80
#---------------------------------------------------------------------------------------------------#
# yyy.de #
#---------------------------------------------------------------------------------------------------#
<VirtualHost yyy.de:80>
ServerName yyy.de
ServerAlias yyy.de
DocumentRoot /opt/lampp/htdocs/yyy.de/html
ErrorLog /opt/lampp/htdocs/logs/yyy.de/logs/error.log
CustomLog /opt/lampp/htdocs/logs/yyy.de/logs/custom.log custom
</VirtualHost>
#---------------------------------------------------------------------------------------------------#
# xxx.de #
#---------------------------------------------------------------------------------------------------#
<VirtualHostxxx:80>
ServerName xxx.de
ServerAlias xxx.de
ServerAdmin webmaster@xxx.de
DocumentRoot /opt/lampp/htdocs/xxx/html
ErrorLog /opt/lampp/htdocs/xxx/logs/error.log
CustomLog /opt/lampp/htdocs/xxx/logs/custom.log custom
</VirtualHost>