Hallo Leute,
Ich habe versucht, nach dem Topic:
http://www.linux-club.de/viewtopic.php?t=38317
mein Debian VirtualHost tauglich zu machen....geht aber nicht bei mir.
In meiner /etc/hosts
habe ich das stehen:
Und in meiner /etc/apache2/vhosts.d/RECHNERNAME.conf
Ping zu domain1.tld
Ping zu domain2.tld
Ping zu stilo.tld
geht nicht.
Nach nem Reload des apache2 kommt:
habe natürlich auch in der apache2.conf, am Ende das eingetragen:
Warum gehen die Alias nicht ??
habe ich etwas vergessen irgendwas mit DNS oder so ?
Ich weis es nicht.
ich möchte, das ich domain1.tld auch im Browser mit www.domain1.tld ansprechen kann.
Ich habe versucht, nach dem Topic:
http://www.linux-club.de/viewtopic.php?t=38317
mein Debian VirtualHost tauglich zu machen....geht aber nicht bei mir.
In meiner /etc/hosts
habe ich das stehen:
Code:
192.158.578.2 local.domain1.tld local.domain2.tld local.stilo.tld
# The following lines are desirable for IPv6 capable hosts
fe00::0 ip6-localnet
ff00::0 ..ip6-mcastprefix.
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
Und in meiner /etc/apache2/vhosts.d/RECHNERNAME.conf
Code:
<VirtualHost local.domain1.tld:80>
ServerName local.domain1.tld
DocumentRoot /var/www/domain1
ErrorLog /var/www/domain1/error_log
# Wenn schon, denn schon, aber ggf auch /etc/logrotate.d/apache2 anpassen
#CustomLog "/var/www/domain1/access_log" common
<Directory "/var/www/domain1>
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost local.domain2.tld:80>
ServerName local.domain2.tld
DocumentRoot /var/www/domain2
ErrorLog /var/www/domain2/error_log
# Wenn schon, denn schon, aber ggf auch /etc/logrotate.d/apache2 anpassen
# CustomLog "/var/www/domain2/access_log" common
<Directory "/var/www/domain2>
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Ping zu domain1.tld
Ping zu domain2.tld
Ping zu stilo.tld
geht nicht.
Nach nem Reload des apache2 kommt:
Code:
Could not determine the server´s fully qualified domain name, using 127.0.0.1 for ServerName
...VirtualHost local.domain2.tld:80 -- mixing * ports and non- * ports with a NameVirtualHost address is not supported, proceeding with undfined results
habe natürlich auch in der apache2.conf, am Ende das eingetragen:
Code:
# Include the virtual host configurations:
#Include /etc/apache2/sites-enabled/[^.#]*
NameVirtualHost 192.168.178.2
Include /etc/apache2/vhosts.d/*.conf
Warum gehen die Alias nicht ??
habe ich etwas vergessen irgendwas mit DNS oder so ?
Ich weis es nicht.
ich möchte, das ich domain1.tld auch im Browser mit www.domain1.tld ansprechen kann.