9

I installed Tomcat 7 on Synology DS414. I cannot find any info on how to set it up and get it running. The NAS comes with a Web server app, and that is the one serving up its index.html file. I cannot find any config file for Tomcat, nor can I find any way to enable it, so that it becomes the active web server on the device. Does it replace the Web Station web server that comes with the NAS, or is it an add-on that works with it?

R B
  • 91
  • 1
  • 1
  • 3

2 Answers2

16

Alvaro is correct.

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

Example contents:

<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 start the Tomcat package after making changes to the configuration file to make sure Tomcat reloads it.

Pointer Null
  • 39,597
  • 13
  • 90
  • 111
Patrick Smits
  • 161
  • 1
  • 3
9

When you execute tomcat this will be located on port 7070 by default.

To configure Tomcat7 on synology NAS DS414, you have to access NAS using ssh terminal, the location of the tomcat7 config files are in /volume1/@appstore/Tomcat7/src/conf

Jeffrey Bosboom
  • 13,313
  • 16
  • 79
  • 92