[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Apache Config



Hallo

Ich möchte, dass die folgenden "Verknüpfungen" gelten:
 
http://www.usb.homelinux.org 	-> /var/www/www 
http://usb.homelinux.org 		-> /var/www/
http://foo.usb.homelinux.org	-> /var/www/foo

Nun hab ich an das Ende der httpd.conf (apache 1.3.33) folgendes 
Eingetragen:
<......>
NameVirtualHost www.usb.homelinux.org
<VirtualHost www.usb.homelinux.org>
    ServerName www.usb.homelinux.org
    DocumentRoot /var/www/www
    <Directory "/var/www/www">
        Options FollowSymLinks ExecCGI
        AllowOverride AuthConfig
        Order allow,deny
        Allow from all
    </Directory>
    ServerAdmin webmaster@usb.homelinux.org
</VirtualHost>
<VirtualHost usb.homelinux.org>
    ServerName usb.homelinux.org
    DocumentRoot /var/www/
    <Directory "/var/www/">
        Options FollowSymLinks ExecCGI
        AllowOverride AuthConfig
        Order allow,deny
        Allow from all
    </Directory>
    ServerAdmin webmaster@usb.homelinux.org
</VirtualHost>
<VirtualHost foo.usb.homelinux.org>
    ServerName foousb.homelinux.org
    DocumentRoot /var/www/foo
    <Directory "/var/www/foo">
        Options FollowSymLinks ExecCGI
        AllowOverride AuthConfig
        Order allow,deny
        Allow from all
    </Directory>
    ServerAdmin webmaster@usb.homelinux.org
</VirtualHost>

Leider scheint es so, dass ich jedesmal in /var/www rauskomm. 
Wie ihr sicherlich schon gesehen habt ist das eine dyndns Adresse. D.h. 
keine feste IP. Er hängt auch nicht direkt am Internet sondern ein 
DSL-Router leitet alle Port 80 Anfragen auf ihn weiter. Intern hat der 
Rechner die IP 192.168.12.79.
Was hab ich falsch gemacht?

Gruß

Micha Mutschler
-- 
Linux-User #354776 with the Linux Counter, http://counter.li.org/

Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.fsf.org/philosophy/no-word-attachments.de.html 



Reply to: