ich möchte meinen Apache Root von außen nicht erreichbar haben, aber einen Virtuellen Host schon.
Meine bisherigen Versuche in der httpd.conf:
- Code: Select all
NameVirtualHost localhost:80
<VirtualHost 127.0.0.1:80>
ServerAdmin admin@localhost
DocumentRoot "D:/xampp/htdocs"
ServerName localhost
<directory D:/xampp/htdocs>
AllowOverride All
</directory>
</VirtualHost>
NameVirtualHost xxxxx.dyndns.org:80
<VirtualHost 192.168.1.1:80>
ServerAdmin admin@localhost
DocumentRoot "D:/xampp/htdocs"
ServerName xxxxx.dyndns.org
<directory D:/xampp/htdocs>
AllowOverride All
Order deny,allow
Deny from all
</directory>
</VirtualHost>
NameVirtualHost models.localhost:80
<VirtualHost 127.0.0.1:80>
ServerAdmin admin@localhost
DocumentRoot "D:/xampp/htdocs/duestermodels"
ServerName models.localhost
<directory D:/xampp/htdocs/duestermodels>
AllowOverride All
</directory>
</VirtualHost>
NameVirtualHost models.xxxxx.dyndns.org:80
<VirtualHost 192.168.1.1:80>
ServerAdmin admin@localhost
DocumentRoot "D:/xampp/htdocs/duestermodels"
ServerName models.xxxxx.dyndns.org
<directory D:/xampp/htdocs/duestermodels>
AllowOverride All
Order deny,allow
Allow from all
</directory>
</VirtualHost>
Leider ist so alles gesperrt, ich bekomme überall einen Deny. models.xxxxx.dyndns.org soll aber offen sein, xxxxx.dydns.org jedoch nicht.
Wer kann mir nen Tipp geben, wie ich das regeln kann?
Danke,
Gruß Uwe