Hallo,
leider vergebens versuche ich auf einem virtuellen Debian Server einen virtuellen Host einzurichten. Dabei gehe ich wie folgt vor:
Erstellen einer vhost Datei unter "/etc/apache2/sites-available " mit folgendem Inhalt (s.u.)
Vhost verfügbar machen mit a2ensite vhost.datei
Prüfen der Einstellung in der apache2.conf --> Include /etc/apache2/sites-enabled/[^.#]*
(ist gesetzt)
Reload / Resart des Apachen
Beim Reload bekomme ich folgende Fehlermeldung:
/etc/init.d/apache2 reload
Reloading web server config…9276
[Sun Jun 17 20:31:08 2007] [error] (EAI 2)Name or service not known: Could not resolve host name bla.bla.net – ignoring!
[Sun Jun 17 20:31:08 2007] [error] (EAI 2)Name or service not known: Could not resolve host name bla.bla.net – ignoring!
Und hier meine Vhost Datei:
ServerAdmin [email protected]
ServerName www.bla.bla.net
# ServerAlias domain.tld *.domain.tld
ServerAlias bla.bla.net
DocumentRoot /home/mst/bla.bla.net/htdocs/
Options FollowSymLinks
AllowOverride None
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2’s default start page
# in /apache2-default/, but still have / go to the right place
# RedirectMatch ^/$ /apache2-default/
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
ErrorLog /var/log/apache2/bla.net/bla.bla.net.error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/bla.net/bla.bla.net.access.log combined
ServerSignature On
Alias /doc/ „/usr/share/doc/“
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
Danke & Gruß, olli