ich habe zwei virtuelle Hosts eingerichtet für zwei Programme unter zwei verschiedenen Tomcats. XamppTomcat nicht installiert.
Bei 8080 funktioniert alles wie gewünscht; Leitet wie gewünscht auf https weiter wenn über HTTP aufgerufen. https bei 8090 funktioniert auch - aber http nicht:
The requested URL xy was not found on this server.
Tausche ich die Ports ist es genau das gleiche. 8080 funktioniert 8090 nicht. Liegt also nicht an den Programmen denke ich.
Konfiguration in der virtuelle Hosts.Conf:
- Code: Select all
<VirtualHost *:90>
ServerAdmin webmaster@SERVERNAME
DocumentRoot "C:/programs/apache/htdocs"
ServerName SERVERNAME
ServerAlias SERVERNAME
ProxyRequests Off
ProxyPreserveHost On
ProxyPass /prog2 http://SERVERNAME:8090/prog2
ProxyPassReverse /prog2 http://SERVERNAME:8090/prog2
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@SERVERNAME
DocumentRoot "C:/programs/apache/htdocs"
ServerName SERVERNAME
ServerAlias SERVERNAME
ProxyRequests Off
ProxyPreserveHost On
ProxyPass /prog http://SERVERNAME:8080/prog
ProxyPassReverse /prog http://SERVERNAME:8080/prog
</VirtualHost>
ssl.conf
- Code: Select all
<VirtualHost _default_:443>
ServerName SERVERNAME
SSLEngine On
SSLCertificateFile "C:\OpenSSL-Win32\server.crt"
SSLCertificateKeyFile "C:\OpenSSL-Win32\server.key"
SSLProxyEngine On
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /prog2 http://SERVERNAME:8090/prog2
ProxyPassReverse /prog2 http://SERVERNAME:8090/prog2
ProxyPass /prog http://SERVERNAME:8080/prog
ProxyPassReverse /prog http://SERVERNAME:8080/prog
</VirtualHost>
Woran könnte es liegen?
Danke im Voraus
Olaf