Am 13.05.2011 21:21, schrieb Arne Heizmann: > On 13/05/2011 20:02, Reindl Harald wrote: >>> In meiner httpd.conf habe ich folgende Anweisung: >>> NameVirtualHost timwi.dyndns.org:8080 >> >> Wozu der Zirkus und warum steht da ein externer DynDNS-Hostname >> in einer lokalen Config? > > Weil ich offenbar nicht so schlau bin wie du und halt nicht wusste, dass die > Schlamper bei Apache eine Option > „NameVirtualHost“ nennen, die weder den „Name“ (wie in ServerName) noch den > „Host“ (wie im HTTP-Header „Host“) > erwartet.
Die "Schlamper" haben sich was dabei gedacht, auch als sie die Doku geschrieben haben http://www.google.at/search?q=apache+name+virtual+host Treffer 1: http://httpd.apache.org/docs/1.3/vhosts/name-based.html If you are adding virtual hosts to an existing web server, you must also create a <VirtualHost> block for the existing host. The ServerName and DocumentRoot included in this virtual host should be the same as the global ServerName and DocumentRoot. List this virtual host first in the configuration file so that it will act as the default host. For example, suppose that you are serving the domain www.domain.tld and you wish to add the virtual host www.otherdomain.tld, which points at the same IP address. Then you simply add the following to httpd.conf: NameVirtualHost * <VirtualHost *> ServerName www.domain.tld DocumentRoot /www/domain </VirtualHost> <VirtualHost *> ServerName www.otherdomain.tld DocumentRoot /www/otherdomain </VirtualHost> You can alternatively specify an explicit IP address in place of the * in both the NameVirtualHost and <VirtualHost> directives. The IP address is required in version 1.3.12 and earlier.
signature.asc
Description: OpenPGP digital signature