Tomcat in the Cloud
Configure your Tomcat Server
Now that you deployed your Tomcat server, we need to configure a Tomcat user to manage your server instance - just like any locally deployed Tomcat server.
1. Edit config files with Azure App Service Editor
The quickest path to add a user to configuration files is to use Azure App Service Editor which allows you to edit files directly.
To access, simply navigate to a modified URL of your server, using the following URL structure:
https://yourSiteName.scm.azurewebsites.net/dev
From the example before, we would use: https://myTomcat1.scm.azurewebsites.net/dev
1. Open tomcat-users.xml
In the App Service Editor, you can find the tomcat-users.xml configuration file within the WWWROOT/bin/apache-tomcat-8.0.45/conf folder.
2. Create a new users in the config file
Within the tomcat-users.xml file, add the following lines at line 44 (just before the closing item).
<role rolename="manager-gui"/>
<user username="admin" password="admin" roles="manager-gui"/>
Hint: Use a stronger password
The modified file should look like this:
3. Reboot to apply changes
Navigate to the Azure Portal, select your newly created Tomcat Server and reboot in the Overview tab.
4. Access your Tomcat Management Portal
Now that you created the first user in the configuration file, feel free to access your Tomcat Management Portal. By default, the URL for the management console is:
https://yourhostname.azurewebsites.net/manager
From the example before, we would use: https://myTomcat1.azurewebsites.net/manager
I ran into an issue I have configured my Tomcat server