Configure project on tomcat8 Ubuntu Server

Asked

Viewed 175 times

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.

inserir a descrição da imagem aqui

Must be setting something else?

  • You are putting War inside the stopped server and then climbing it?

  • @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

  • 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

  • @Weslleytavares but I just want to access meuprojeto.com.br:8081, without having to type the context/module

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.