J
J
jenig2020-11-08 16:38:57
Java
jenig, 2020-11-08 16:38:57

How to make a redirect in TomCat?

I deployed the project on a VPS in TomCat, but I want access to it on the same VPS not through localhost:8080/myapp , but through a domain name like www.myapps.com .
I have not encountered deployment before, please tell me how this can be organized.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2020-11-08
@jenig

In server.xml, you need to register the corresponding host and change the port. The file is richly commented, you won't get lost.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question