Tomato
02.10.09, 20:19
Hallo allerseits. Ich habe eine Standard-Apache-Installation, die (in Teilen) wie folgt aussieht:
apache2.conf
Include /etc/apache2/sites-enabled/
In /etc/apache2/sites-enabled befinden sich symbolische Links auf /etc/apache2/sites-available, was ja nun auch nicht wirklich ungewöhnlich ist :)
In /sites-available befinden sich:
default, default-ssl, www.stammtischphilosoph.com.conf, www.nocarrier.com.conf
default ist leer, stammtisch... sieht wie folgt aus:
<VirtualHost stammtischphilosoph.com>
DocumentRoot /var/www/stammtischphilosoph
ServerAlias stammtischphilosoph.com
ServerAdmin webmaster@localhost
RewriteEngine On
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</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
LogLevel warn
CustomLog /var/log/apache2/access.log combined
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>
<Directory "/var/www/stammtischphilosoph">
AllowOverride All
allow from all
Options +Indexes
RewriteEngine On
</Directory>
ServerName www.stammtischphilosoph.com
</VirtualHost>
Die Datei nocarrier ist quasi copy/paste aus stammtisch..., nur Pfade und Domainnamen wurden geändert:
<VirtualHost nocarrier.de>
DocumentRoot /var/www/nocarrier
ServerAlias nocarrier.de
ServerAdmin webmaster@localhost
RewriteEngine On
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</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
LogLevel warn
CustomLog /var/log/apache2/access.log combined
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>
<Directory "/var/www/nocarrier">
AllowOverride All
allow from all
Options +Indexes
RewriteEngine On
</Directory>
ServerName www.nocarrier.de
</VirtualHost>
Nun ist das Problem, dass auch die Domain nocarrier.de auf das Verzeichnis von stammtischphilosoph verweist.
Irgendeine Idee, was fehlt?
apache2.conf
Include /etc/apache2/sites-enabled/
In /etc/apache2/sites-enabled befinden sich symbolische Links auf /etc/apache2/sites-available, was ja nun auch nicht wirklich ungewöhnlich ist :)
In /sites-available befinden sich:
default, default-ssl, www.stammtischphilosoph.com.conf, www.nocarrier.com.conf
default ist leer, stammtisch... sieht wie folgt aus:
<VirtualHost stammtischphilosoph.com>
DocumentRoot /var/www/stammtischphilosoph
ServerAlias stammtischphilosoph.com
ServerAdmin webmaster@localhost
RewriteEngine On
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</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
LogLevel warn
CustomLog /var/log/apache2/access.log combined
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>
<Directory "/var/www/stammtischphilosoph">
AllowOverride All
allow from all
Options +Indexes
RewriteEngine On
</Directory>
ServerName www.stammtischphilosoph.com
</VirtualHost>
Die Datei nocarrier ist quasi copy/paste aus stammtisch..., nur Pfade und Domainnamen wurden geändert:
<VirtualHost nocarrier.de>
DocumentRoot /var/www/nocarrier
ServerAlias nocarrier.de
ServerAdmin webmaster@localhost
RewriteEngine On
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</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
LogLevel warn
CustomLog /var/log/apache2/access.log combined
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>
<Directory "/var/www/nocarrier">
AllowOverride All
allow from all
Options +Indexes
RewriteEngine On
</Directory>
ServerName www.nocarrier.de
</VirtualHost>
Nun ist das Problem, dass auch die Domain nocarrier.de auf das Verzeichnis von stammtischphilosoph verweist.
Irgendeine Idee, was fehlt?