Custom Vhosts Log directories

Questions about HTTP Access/Mods may go here
Forum rules
We've moved! Head over to Synology Community (community.synology.com) to meet up with our team and other Synology enthusiasts!
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 ? :(

Locked

Return to “HTTP/Apache Mods”