Probleme mit vHost

Debian macht sich hervorragend als Web- und Mailserver. Schau auch in den " Tipps und Tricks"-Bereich.
Antworten
Boity
Beiträge: 799
Registriert: 15.05.2009 13:59:19

Probleme mit vHost

Beitrag von Boity » 14.04.2016 17:44:54

Hi,

irgendwie klappt meine vHost-Config nicht so wie ich möchte :

login.domain.tld geht ständig auf Exchange :-(.
manager.domain.tld passt, hier sollte aber zusätzlich auch login.domain.tld erreichbar sein.

Wisst ihr wo hier der Denkfehler liegt?

Code: Alles auswählen




<VirtualHost *:80>
ProxyPreserveHost On
RedirectPermanent / https://exchange.domain.tld/
</VirtualHost>

<VirtualHost *:80>
ProxyPreserveHost On
ServerAlias manager.domain.tld
RedirectPermanent / https://manager.domain.tld/
</VirtualHost>

<VirtualHost *:443>
ServerAlias     manager.domain.tld
ProxyPass / https://server.domain-intra.local:8444/
ProxyPassReverse / https://server.domain-intra.local:8444/

# Proxy fuer SSL aktivieren
SSLProxyEngine On
SSLCertificateFile    /home/foo/certificate.crt
SSLCertificateKeyFile /home/foo/stardomain.key
SSLCertificateChainFile /home/foo/intermediate1.crt

SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
</VirtualHost>



<VirtualHost *:443>
ServerName      login.domain.tld
ProxyPass / https://server.domain-intra.local:8445/
ProxyPassReverse / https://server.domain-intra.local:8445/

# Proxy fuer SSL aktivieren
SSLProxyEngine On
SSLCertificateFile    /home/foo/certificate.crt
SSLCertificateKeyFile /home/foo/stardomain.key
SSLCertificateChainFile /home/foo/intermediate1.crt

SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
</VirtualHost>



Antworten