ich versuche schon einige Tage meinen Apache zu bezwingen, leider ohne Erfolg...
Ich möchte folgendes:
http://meinedomain.tld => /var/www
https://meinedomain.tld => /var/www
http://webmail.meinedomain.tld => /var/www/email
https://webmail.meinedomain.tld => /var/www/email
http://emailsync.meinedomain.tld => /var/www/emailsync
https://emailsync.meinedomain.tld => /var/www/emailsync
Mehr solls gar nicht sein... Ich habe mir schon http://httpd.apache.org/docs/2.1/de/vhosts/ zu gemüte geführt, nur funktionieren tuts noch immer nicht. Ich habe eine IP-Adresse und eine Domain. Im DNS wird für alle Subdomains meine IP zurück gegeben. So weit also alles richtig würde ich behaupten... Leider funktioniert es nicht so ganz. Und was muss ich tun, damit alle Seiten auch via https erreichbar sind?
Evtl. hat ja auch einer von Euch einen guten Link zu Hand mit dem sich meine Frage erledigt? Vielen Dank schonmal!
- Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.meinedomain.tld
ServerAlias www.meinedomain.tld meinedomain.tld
DocumentRoot /var/www
</VirtualHost>
<VirtualHost *:80>
ServerName webmail.meinedomain.tld
DocumentRoot /var/www/email
</VirtualHost>
<VirtualHost *:80>
ServerName emailsync.meinedomain.tld
DocumentRoot /var/www/emailsync
</VirtualHost>