Apache2, Debian und ein VHost

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

Hallo,

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)

Das ist erst mal richtig.

Reload / Resart des Apachen

Beim Reload bekomme ich folgende Fehlermeldung:

Kannst du bitte Fehlermeldungen in Zukunft in

-Tags packen, nicht <sub>? Dann ist das auch einigermaßen lesbar.<br><br><pre><br>

<blockquote>
/etc/init.d/apache2 reload<br>Reloading web server config...9276<br>[Sun Jun 17 20:31:08 2007] [error] (EAI 2)Name or service not<br>known: Could not resolve host name bla.bla.net -- ignoring!<br>
</blockquote>

</pre>
<br><br>Du hast ein DNS-Problem mit bla.bla.net, Apache kann die Domain nicht auflösen. Ich kann es auch nicht.<br><br>Grüße,<br>Moritz</sub>

Hi Moritz,

danke für deine Antwort.

Das DNS Problemchen hab ich, dank deines Hinweises, gelöst. Allerdings erhalte ich jetzt beim Reload folgende Warnung:

/etc/init.d/apache2 reload
Reloading web server config...9276
[Mon Jun 18 12:08:16 2007] [warn] NameVirtualHost micha.mauldoch.net:0 has no VirtualHosts
[Mon Jun 18 12:08:16 2007] [warn] NameVirtualHost schreidoch.net:0 has no VirtualHosts

Scheinbar stimmt doch etwas nicht mit den Einträgen. Für die Subdomain sieht das so aus:

NameVirtualHost micha.mauldoch.net

 ServerAdmin [email protected]
 ServerName www.micha.mauldoch.net
# ServerAlias domain.tld \*.domain.tld
 ServerAlias micha.mauldoch.net

 DocumentRoot /home/mst/micha.mauldoch.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/mauldoch.net/micha.mauldoch.net.error.log

 # Possible values include: debug, info, notice, warn, error, crit,
 # alert, emerg.
 LogLevel warn

 CustomLog /var/log/apache2/mauldoch.net/micha.mauldoch.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

Was mach ich falsch und was sollte ich ändern?

Dank & Gruß, olli