Ich habe seit einiger Zeit damit zu kämpfen und mache definitiv etwas falsch.
Ich habe einen Apache-Server und einen JBoss-Server auf demselben Computer. Ich möchte den Datenverkehr für mydomain.com an JBoss localhost: 8080 / example umleiten. Das DNS ist derzeit für mydomain.com eingerichtet und wird bei Eingabe in den Browser direkt an Port 80 weitergeleitet.
Meine Frage ist, wie ich zu einem anderen Port umleiten kann, wenn ein bestimmter Domainname zu Apache kommt (in diesem Fall "mydomain.com").
<VirtualHost ip.addr.is.here>
ProxyPreserveHost On
ProxyRequests Off
ServerName mydomain.com
ProxyPass http://mydomain.com http://localhost:8080/example
ProxyPassReverse http://mydomain.com http://localhost:8080/example
</VirtualHost>
AKTUALISIERT mit Vorschlägen - Weiterleitung an Port 8080
<VirtualHost *:80>
ProxyPreserveHost On
ProxyRequests Off
ServerName mydomain.com
ServerAlias www.mydomain.com
ProxyPass http://mydomain.com http://localhost:8080/example
ProxyPassReverse http://mydomain.com http://localhost:8080/example
</VirtualHost>