Ich habe eine Frage:
Ich hab eine fixe IP, Router routet Port 80 auf xampp-PC-192.168.0.10
Ich hab 4 Domains - die auf meine fixe IP gehen
Die ersten zwei Domain soll auf xampp-PC-192.168.0.10 gehen
Die anderen zwei Domains sollen auf xampp-PC-192.168.0.20
(Begründung: auf dem ersten PC läuft altes xampp mit php 4 und so spezielle Sachen / auf dem zweiten PC läuft php 5 und so spezielle Sachen)
Jetzt versuch ich schon eine Weile, das zu lösen ..
Auf xampp-PC-192.168.0.10 hab ich in der httpd-vhosts Datei:
- Code: Select all
VirtualHost 192.168.0.10>
ServerName http://www.domain1.at
ServerAlias domain1.at
ServerAlias domain1 //..................................................................die erste DOMAIN
AddType text/html .shtml
AddHandler server-parsed .shtml
DocumentRoot e:/www/domain1
<Directory e:/www/domain1>
Options Indexes FollowSymLinks
Options +Includes
AllowOverride FileInfo
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex index.html index.htm index.php
</Directory></VirtualHost>
- Code: Select all
<VirtualHost 192.168.0.10>
ServerName http://www.domain2.at
ServerAlias domain2.at
ServerAlias domain2 //..................................................................die zweite DOMAIN
AddType text/html .shtml
AddHandler server-parsed .shtml
DocumentRoot e:/www/domain2
<Directory e:/www/domain2>
Options Indexes FollowSymLinks
Options +Includes
AllowOverride FileInfo
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex index.html index.htm index.php
</Directory></VirtualHost>
- Code: Select all
<VirtualHost 192.168.0.10>
ServerName http://www.domain3.at
ServerAlias domain3.at //..................................................................die dritte DOMAIN
redirect permanent / http://192.168.0.20/domain3/
</VirtualHost>
- Code: Select all
<VirtualHost 192.168.0.10>
ServerName http://www.domain4.at
ServerAlias domain4.at //..................................................................die vierte DOMAIN
redirect permanent / http://192.168.0.20/domain4/
</VirtualHost>
Aber das funktioniert klarerweise nicht .. Wenn jemand ausserhalb meines Netzwerkes die Domains 3 + 4 aufruft, wird sein lokaler Browser auf 192.168.0.20 .. weitergeleitet
Wie kann ich das lösen (2e fixe IP ist leider nicht drinnen ..)
Vielen Dank für die Hilfe
mfg Erich