This question is probably too simple, but I can't get it to work despite hours of testing (and even server crashing twice oo).
The question is often asked: the Tomcat server is accessible through: "Domain.net:8080/theserver/" and I want it to be available directly on "domain.net/". This should also be visible in the user's browser.
The Plesk engine, which I use to set up the site, offers a command box for such things. Using the following lines, I set the visible redirection:
ProxyRequests off
RequestHeader unset Accept-Encoding
RewriteEngine on
RewriteRule ^(/.*) http://www.domain.net:8080/theserver [P]
However, redirection is not performed in the background. When I enter domain.net into the browser, it switches to "domain.net:8080/theserver/".
What is the right way to do this in the background? "theserver" is the root location that should now be available on the server.
Thank you so much in advance!
source
share