How to get Tomcat application project by requesting domain default page?

Created:

2017-06-10 12:48:00 UTC

Modified:

2017-08-08 13:21:20 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to get Tomcat application project by requesting domain default page?

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/
    
Have more questions? Submit a request
Please sign in to leave a comment.