Ich bin auf einen frischen Debian umgesattelt und habe mittlerweile alles eingerichtet.
Nun habe ich das Problem, dass alle Domains auf den ersten Virtual Host zeigen...was ist denn an folgenden Zeilen falsch?
Code: Select all
Include /etc/apache/conf.d
NameVirtualHost 111.111.111.111
<VirtualHost 111.111.111.111>
ServerAdmin webmaster@domain.de
ServerName www.domain.de
ServerAlias www.domain2.de www.domain3.de www.domain4.de
# ServerPath /domain
DocumentRoot /var/www/sites/domain/html
<Directory "/var/www/sites/domain/html">
allow from all
Options +Indexes
php_flag session.use_trans_sid off
</Directory>
ServerSignature Off
CustomLog /var/www/sites/domain/log/access_log common
ErrorLog /var/www/sites/domain/log/error_log
php_admin_value open_basedir /var/www/sites/domain/html
php_admin_value upload_tmp_dir /var/www/sites/domain/tmp
php_admin_value session.save_path /var/www/sites/domain/tmpsession
</VirtualHost>
<VirtualHost 111.111.111.111>
ServerName www.otherdomain.de
ServerAdmin webmaster@otherdomain.de
DocumentRoot /var/www/sites/otherdomain/html
<Directory "/var/www/sites/otherdomain/html">
allow from all
Options +Indexes
</Directory>
ServerSignature Off
CustomLog /var/www/sites/otherdomain/log/access_log common
ErrorLog /var/www/sites/otherdomain/log/error_log
php_admin_value open_basedir /var/www/sites/otherdomain/html
php_admin_value upload_tmp_dir /var/www/sites/otherdomain/tmp
php_admin_value session.save_path /var/www/sites/otherdomain/tmpsession
</VirtualHost>
usw...