jfried
19.07.05, 16:18
Hallo,
ich habe folgendes Problem.
2 virtuelle Hosts
NameVirtualHost 192.168.0.21
<VirtualHost jan>
ServerAdmin webmaster@localhost
ServerName jan
ServerAlias jan.me.net
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
<VirtualHost jfg>
ServerAdmin webmaster@localhost
ServerName jfg
ServerAlias jan.friedrich.gehring
DocumentRoot /tmp
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /tmp/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Linux Distribution: Debian 3.1
Apache Version: 2.0.54-4
Meine /etc/hosts sieht so aus:
127.0.0.1 localhost jan
192.168.0.21 jan.me.net jan
192.168.0.21 jan.friedrich.gehring jfg
192.168.0.21 jan22.friedrich.gehring jfg22
Wenn ich jetzt im Webbrowser
http://jfg22/ oder http://jan22.friedrich.gehring/ aufrufe landet er auf dem 1. Virtuellen Host.
Ich will aber, dass eine Fehlermeldung kommt (404 Seite nicht gefunden) oder so ihrgendwas aehnliches.
Vielen Dank fuer eure Hilfe.
Jan.
ich habe folgendes Problem.
2 virtuelle Hosts
NameVirtualHost 192.168.0.21
<VirtualHost jan>
ServerAdmin webmaster@localhost
ServerName jan
ServerAlias jan.me.net
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
<VirtualHost jfg>
ServerAdmin webmaster@localhost
ServerName jfg
ServerAlias jan.friedrich.gehring
DocumentRoot /tmp
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /tmp/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Linux Distribution: Debian 3.1
Apache Version: 2.0.54-4
Meine /etc/hosts sieht so aus:
127.0.0.1 localhost jan
192.168.0.21 jan.me.net jan
192.168.0.21 jan.friedrich.gehring jfg
192.168.0.21 jan22.friedrich.gehring jfg22
Wenn ich jetzt im Webbrowser
http://jfg22/ oder http://jan22.friedrich.gehring/ aufrufe landet er auf dem 1. Virtuellen Host.
Ich will aber, dass eine Fehlermeldung kommt (404 Seite nicht gefunden) oder so ihrgendwas aehnliches.
Vielen Dank fuer eure Hilfe.
Jan.