2 Verschiedene Verzeichnisse über Domain und Server IP

SlashIt

Grünschnabel
Hey,

ich hab ein kleines Problem mit der Apache konfiguration. Ich hab eine Domain die auf ein bestimmtest Verzeichnis zeigen soll und zusätzlich will ich das die Server IP auf ein anderes Verzeichnis zeigt.

Momentan habe ich diese Einstellung, aber sowohl die Domain als auch die IP leiten auf das Verzeichnis von der Domain.

Code:
NameVirtualHost *
<VirtualHost *>
	ServerAdmin webmaster@localhost
	DocumentRoot /var/www/
</VirtualHost>
NameVirtualHost domain.de
<VirtualHost domain.de>
	ServerAdmin webmaster@localhost
        ServerName domain.de
	DocumentRoot /var/www/webpage/
	<Directory />
		Options FollowSymLinks
		AllowOverride All
	</Directory>
</VirtualHost>
 
Ich würds mal so testen:

Code:
<Directory />
	Options FollowSymLinks
	AllowOverride All
</Directory>

NameVirtualHost *

<VirtualHost *>
        ServerName IP.AD.RES.SE
	ServerAdmin webmaster@localhost
	DocumentRoot /var/www/
</VirtualHost>

<VirtualHost *>
	ServerAdmin webmaster@localhost
        ServerName domain.de
	DocumentRoot /var/www/webpage/
</VirtualHost>

Gruss
Alex
 

Neue Beiträge

Zurück