Quantcast
Channel: Multimediaforum
Viewing all articles
Browse latest Browse all 4603

Apache Virtuelle Hosts

$
0
0
Hey leute,

ich habe ein Problem mit meinem apache Server und zwar möchte ich 2 virtuelle hosts haben:

www.pattymitzaufen.de ---> /var/www/pmz
www.dj-carreck.de ---> /var/www/carreck

ich habe 2 datein in /etc/apache2/sites-available:

pmz

shell Konsole
<VirtualHost 46.17.98.54> ServerName pattymitzaufen.de ServerAdmin root@pattymitzaufen.de DocumentRoot /var/www/pmz <Directory /var/www/pmz> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ErrorLog /var/log/apache2/error.log LogLevel warn CustomLog /var/log/apache2/access.log combined ServerSignature On </VirtualHost>
und:

carreck

shell Konsole
<VirtualHost 46.17.98.54> ServerName dj-carreck.de ServerAdmin root@pattymitzaufen.de DocumentRoot /var/www/carreck <Directory /var/www/carreck> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ErrorLog /var/log/apache2/error.log LogLevel warn CustomLog /var/log/apache2/access.log combined ServerSignature On </VirtualHost>
Beide Seiten wurden mit "a2ensite pmz" und "a2ensite carreck" aktiviert.

So jetzt kommts, wenn ich versuche mit "/etc/init.d/apache2 reload" die configs zu laden sagt er folgendes:

shell Konsole
Reloading web server config: apache2apache2: Could not reliably determine the server's fully qualified domain name, using pattymitzaufen.de for ServerName VirtualHost 46.17.98.54:0 overlaps with VirtualHost 46.17.98.54:0, the first has precedence, perhaps you need a NameVirtualHost directive . ok
Ich werde da nicht schlau raus...

wenn ich nun auf pattymitzaufen.de gehe zeigt er mir /var/www/carreck
wenn ich auf dj-carreck.de gehe zeigt er mir auch /var/www/carreck

wo ist mein Fehler?
glaube nicht dass es was großes ist aber ich komm nicht drauf

Viewing all articles
Browse latest Browse all 4603