Relocate httpd-user DocumentRoot

Questions about HTTP Access/Mods may go here
Forum rules
1) This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:

https://account.synology.com/support/su ... p?lang=enu



2) To avoid putting users' DiskStation at risk, please don't paste links to any patches provided by our Support team as we will systematically remove them. Our Support team will provide the correct patch for your DiskStation model.
rvrnd
I'm New!
I'm New!
Posts: 2
Joined: Wed May 20, 2015 3:42 pm

Relocate httpd-user DocumentRoot

Unread post by rvrnd » Wed May 20, 2015 4:02 pm

How can I point the basic port 80 web server ("Web Station") to a different document root? I do not want to locate my website in the default location of /volume1/web. The website is part of an existing folder structure at a different path. I've tried

Code: Select all

/bin/mount -o bind /volume1/myShare/public-html/ /volume1/web/
and I've tried

Code: Select all

synoservicecfg --stop httpd-user
rm -r /var/services/web
ln -s /volume1/myShare/public-html /var/services/web
synoservicecfg --start httpd-user
None of my attempts have worked.

How can this be done with the current firmware? And how can it be made to persist, or to be automated when the DS reboots? Thanks!

Post Reply

Return to “HTTP/Apache Mods”