How to set up Tomcat 7 on Synology

I installed Tomcat 7 on Synology DS414. I can not find information on how to configure and run it. The NAS comes with a web server application, and this is the one that serves the index.html file. I cannot find the configuration file for Tomcat and I cannot find a way to enable it so that it becomes the active web server on the device. Does it replace the web server web station that comes with the NAS, or is it an add-in that works with it?

+6
source share
2 answers

Alvaro is right.

The correct file is//volume1/@appstore/Tomcat7/src/conf/tomcat-users.xml, edit it with putty or winscp.

Content example:

<role rolename="admin"/> <role rolename="admin-gui"/> <role rolename="manager"/> <role rolename="manager-gui"/> <role rolename="manager-script"/> <role rolename="manager-jmx"/> <role rolename="manager-status"/> <user username="user" password="password" roles="manager-gui,manager-script,manager-jmx,manager-status,manager,admin,admin-gui"/> 

Stop and run the Tomcat package after making changes to the configuration file to ensure that Tomcat reloads it.

+9
source

When you run tomcat, it will default to port 7070.

To configure Tomcat7 on Synology NAS DS414, you need to access the NAS using the ssh terminal, the location of the tomcat7 configuration files in / volume1 / @ appstore / Tomcat7 / src / conf

+2
source

Source: https://habr.com/ru/post/974930/


All Articles