Question
How to get Tomcat application project on port 8080 by requesting domain default page (port 80).
Answer
This goal can be achieved via rewrite rules:
For example, the following could be added at Domains > example.com > Apache & nginx Settings:
-
at Additional nginx directives if Nginx is set as frontend:
return 301 http://$host:8080$request_uri;
-
at Additional Apache directives if Apache is set as frontend:
Redirect 301 / http://example.com:8080/
Comments
0 comments
Please sign in to leave a comment.