Ich habe einen root Server
debian etch 4.0
apache 2.2.3
mit einer IP xx.xxx.xx.xx
bei einem Domainhoster leiten 2 Domains auf meinen Server
domain1.de
domain2.de
neben der /etc/apache2/sites-available/default
Code: Select all
NameVirtualHost xx.xxx.xx.xx:80
<VirtualHost xx.xxx.xx.xx:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
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/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/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
</Directory>
</VirtualHost>/etc/apache2/sites-available/domain1.de
Code: Select all
<VirtualHost xx.xxx.xx.xx:80>
CustomLog /var/log/apache2/domain1.log common
ServerName domain1.de
ServerAlias *.domain1.de
DocumentRoot /var/www/domain1.de
</VirtualHost>/etc/apache2/sites-available/domain2.de
Code: Select all
<VirtualHost xx.xxx.xx.xx:80>
CustomLog /var/log/apache2/domain2.log common
ServerName domain2.de
ServerAlias *.domain2.de
DocumentRoot /var/www/domain2.de
</VirtualHost>die Verzeichnisse
/var/www/domain1.de und /var/www/domain2.de sind vorhanden
die Dateien /var/log/apache2/domain1.log sowie /var/log/apache2/domain2.log sind ebenfalls vorhanden
beim Aufruf von http://domain1.de sowie http://domain2.de erscheint die index.html die ich in /var/www/ angelegt habe was bedeutet das diese 2 domains nicht in ihr Verzeichnis weitergeleitet werden.
Zeitweise hatte ich noch
/etc/hosts
Code: Select all
xx.xxx.xx.xx domain1.de
xx.xxx.xx.xx domain2.deunter httpd.apache.org gibt es eine Bemerkung ("Der Hauptserver verschwindet") die ich nicht so ganz kapiere und vermute das dies zur Lösung meines Problems führen könnte.
Kann mir da jemand weiterhelfen?
Gruß denny_foo