Danke für den Hinweis. Habe mir das Posting angeschaut und meine Konfiguration entsprechend angepasst. Ich denke, so funktioniert es jetzt. Könntet Ihr mal drübersehen, ob Ihr noch ein Problem seht?
Danke!
P.S.: Hatte das ganze erst in dem anderen Thema gepostet und dann aber gesehen, dass das Thema in Off Topic liegt, was ich nicht recht verstehe, daher hier auch noch mal.
httpd.conf:
- Code: Select all
NameVirtualHost 127.0.0.1:80
<VirtualHost 127.0.0.1:80>
ServerAdmin admin@localhost
DocumentRoot "C:/apachefriends/xampp/htdocs"
ServerName localhost
<directory C:/apachefriends/xampp/htdocs>
AllowOverride All
</directory>
</VirtualHost>
NameVirtualHost 127.0.0.1:80
<VirtualHost 127.0.0.1:80>
ServerAdmin admin@local.mydomain.de
DocumentRoot "C:/kunden/25261_12962/WebSites/www.local.mydomain.de"
ServerName www.local.mydomain.de
<directory C:/kunden/25261_12962/WebSites/www.local.mydomain.de>
AllowOverride All
</directory>
</VirtualHost>
NameVirtualHost 127.0.0.1:443
<VirtualHost 127.0.0.1:443>
ServerAdmin admin@local.mydomain.de
DocumentRoot "C:/kunden/25261_12962/WebSites/www.local.mydomain.de"
ServerName www.local.mydomain.de
SSLEngine on
SSLCertificateFile "C:/apachefriends/xampp/apache/conf/ssl.crt/server.crt"
SSLCertificateKeyFile "C:/apachefriends/xampp/apache/conf/ssl.key/server.key"
<directory C:/kunden/25261_12962/WebSites/www.local.mydomain.de>
AllowOverride All
</directory>
</VirtualHost>
NameVirtualHost 127.0.0.1:80
<VirtualHost 127.0.0.1:80>
ServerAdmin admin@local.admin.mydomain.de
DocumentRoot "C:/kunden/25261_12962/WebSites/www.local.admin.mydomain.de"
ServerName www.local.admin.mydomain.de
<directory C:/kunden/25261_12962/WebSites/www.local.admin.mydomain.de>
AllowOverride All
</directory>
</VirtualHost>
NameVirtualHost 127.0.0.1:443
<VirtualHost 127.0.0.1:443>
ServerAdmin admin@local.admin.mydomain.de
DocumentRoot "C:/kunden/25261_12962/WebSites/www.local.admin.mydomain.de"
ServerName www.local.admin.mydomain.de
SSLEngine on
SSLCertificateFile "C:/apachefriends/xampp/apache/conf/ssl.crt/server.crt"
SSLCertificateKeyFile "C:/apachefriends/xampp/apache/conf/ssl.key/server.key"
<directory C:/kunden/25261_12962/WebSites/www.local.admin.mydomain.de>
AllowOverride All
</directory>
</VirtualHost>
.hosts:
- Code: Select all
127.0.0.1 localhost
127.0.0.1 www.local.mydomain.de
127.0.0.1 www.local.admin.mydomain.de
Achtung: Das ganze soll nur als lokale Entwicklungsumgebung auf xampp/Win XP dienen und nicht als echter WebServer, der von aussen erreichbar ist. Die Domains
www.mydomain.de und
www.admin.mydomain.de sind mit dieser Konfiguration also parallel zur lokalen Entwicklung über das Internet vom Server meines Hosters zu erreichen.
Anschlussfrage: Bei meinem Provider DF) ruft man eine SSL-Seite wie folgt auf:
https://sslsites.de/mydomain.de/index.php
Jetzt habe ich überlegt, wie ich das hier parallel hin kriege. Mache ich das mit einem Alias? Und wie müsste der aussehen? Es müsste so sein, dass die Eingabe von
https://local.sslsites.de/mydomain.de
bzw.
https://local.sslsites.de/admin.mydomain.de
behandelt wird wie
https://www.local.mydomain.de
bzw.
https://www.local.admin.mydomain.de
Ich habe mit Alias noch nie gearbeitet. Hatte gerade einen Versuch damit gewagt, aber ich glaube der Eintrag in der .hosts war dann nicht korrekt. Wäre sehr froh, wenn mir da jemand helfen könnte.