Setup Tomcat 8 with Nginx on Ubuntu

Setting up Tomcat 8 with Nginx is very straight forward.

sudo nano /etc/nginx/sites-enabled/default

Search for the following text with CTRL + W

location /

And add the following line of code after 'try_files $uri $uri/ =404;'


Next, restart Nginx:

sudo service nginx restart

Finally, head over to the appropriate domain and you should then see the Tomcat 8 page.