ich habe hier ein sehr nerviges Problem mit meiner Apache-Installation. Ich wollte fuer meine Anwendung frontend und backend auf verschiedene Ports legen:
Code: Alles auswählen
Listen 4444 https
<VirtualHost *:80>
Redirect / https://172.20.51.137:443/
LogLevel debug
CustomLog /var/log/httpd/demo-frontend.log combined
</VirtualHost>
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/httpd/ssl/demo.crt
SSLCertificateKeyFile /etc/httpd/ssl/demo.key
LogLevel debug
CustomLog /var/log/httpd/demo-frontend.log combined
ProxyRequests Off
ProxyPreserveHost On
<Location /backend/>
Require all denied
</Location>
ProxyPass /frontend/ ws://localhost:8080/frontend/
ProxyPassReverse /frontend/ ws://localhost:8080/frontend/
ProxyPass /frontend/ http://127.0.0.1:8080/frontend/ timeout=1000
ProxyPassReverse /frontend/ http://127.0.0.1:8080/frontend/ timeout=1000
</VirtualHost>
<VirtualHost *:4444>
SSLEngine on
SSLCertificateFile /etc/httpd/ssl/demo.crt
SSLCertificateKeyFile /etc/httpd/ssl/demo.key
LogLevel debug
CustomLog /var/log/httpd/demo-backend.log combined
ProxyRequests Off
ProxyPreserveHost On
ProxyPass /backend/ ws://localhost:8080/backend/
ProxyPassReverse /backend/ ws://localhost:8080/backend/
ProxyPass /backend/ http://127.0.0.1:8080/backend/ timeout=1000
ProxyPassReverse /backend/ http://127.0.0.1:8080/backend/ timeout=1000
<Location /frontend/>
Require all denied
</Location>
</VirtualHost>
Offne ich ueber Port 443 das Backend erhalte ich die Meldung, dass ich da nicht zugreifen darf ...
Mach ich dann aber das Frontend auf, welchsle dann auf Backend, erhalte ich die Login-Seite fuer's Backend.
Ich kann mir das alles leider nicht erklaeren. Hat jemand da drausen vielleicht eine Idee fuer mich?
Gruesse,
TT