Custom Vhosts Log directories

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.
DarkHiito
I'm New!
I'm New!
Posts: 3
Joined: Sun Jun 24, 2018 1:42 pm

Custom Vhosts Log directories

Unread post by DarkHiito » Sun Jun 24, 2018 2:01 pm

Hi !

I'm using DSM 6.2-23739 and I wanted to use custom log directories on my virtual hosts.

So I just tried to add the following code after DocumentRoot instruction :

Code: Select all

ErrorLog "/volume1/web/my-site/logs/error.log"
CustomLog "/volume1/web/my-site/logs/access.log" combined
But after editing vhosts conf (/usr/local/etc/apache24/sites-enabled/httpd-vhosts.conf), when I try to restart Apache (synoservice --restart pkgctl-Apache2.4), my httpd-vhosts.conf file's changes disapear to return to initial values.

Thank you for help !

DarkHiito
I'm New!
I'm New!
Posts: 3
Joined: Sun Jun 24, 2018 1:42 pm

Re: Custom Vhosts Log directories

Unread post by DarkHiito » Sat Jun 30, 2018 10:10 pm

Up ?

DarkHiito
I'm New!
I'm New!
Posts: 3
Joined: Sun Jun 24, 2018 1:42 pm

Re: Custom Vhosts Log directories

Unread post by DarkHiito » Sun Jul 08, 2018 2:41 pm

Anyone can help me ? :(

Post Reply

Return to “HTTP/Apache Mods”