How-to change default document root for Synology Web Station

Posted by in Hosting

If you are enabling the Web Station package for Synology in order to use the file stastion as a web server and don’t want to use a hostname/virtual host to access your web pages, you can easily change the default document root (e.g http://ip-to-synology-nas:80).

  1. Enable SSH access to the NAS. Controlpanel/Terminal/Enable SSH-service.
  2. Login to you NAS via SSH and your admin account.
  3. sudo su (same password as admin)
  4. cd /var/services
  5. rm web (default a soft link to /volume1/web)
  6. ln -s /volume1/your share/new www root/ web
  7. Done!