0
I’m having trouble setting up my project on tomcat8
, I use Ubuntu server.
I created a DNS
or which points to my server on port 8081 and presents the Tomcat homepage without problems.
I’m having trouble changing the file tomcat8/conf/server.xml
for my project, follows below as is my server.xml
, I am layman in the configuration of tomcat
and would like to know how it directs a domain such as meuprojeto.com.br:8081
for my project folder.
<Host name="meuprojeto.com.br" appBase="webapps/AcademiaSIG" unpackWARs="true" autoDeploy="true">
<Context path=""></Context>
</Host>
I have tried to comment on what comes by default but still not redirecting to my project.
Below my directory tree.
Must be setting something else?
You are putting War inside the stopped server and then climbing it?
– Weslley Tavares
@Weslleytavares as I said before, I am layman, what I did was, I used the 'hostmanager' that is initially displayed by Tomcat and going up the War, after that I just edited the server.xml to tell where the folder of my project was that was created. I noticed that there was a War file inside the webapps folder, should I direct something to this file? I always did the Tomcat8 re-start to see the changes
– Wilson Tamarozzi
If your server is in the air, simply access the URL of the application you are deploying. Example: your application has a "meuApp" context and your Tomcat is accessed by localhost:8081, the URL would be localhost:8081//meuApp/your homepage
– Weslley Tavares
@Weslleytavares but I just want to access meuprojeto.com.br:8081, without having to type the context/module
– Wilson Tamarozzi