You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created this issue myself because I have encountered the following problem and I think the solution can be usefull for all:
On my Synology NAS, auto-upgrade of packages is enable. So my Apache2.2 or Apache2.4 packages are automatically upgraded (and their configuration file reseted).
It's the case for the mod_xsendfile.conf, which is automatically reseted for each package upgrade.
This reset set the XSendFilePath to it's default value rather than my custom needed for KodiWebPortal:
Value needed for KodiWebPortal when download is enable (as example):
XSendFilePath /volume1/MEDIATHEQUE
So, to prevent the reset of this value in the mod_xsendfile.conf, I have created a little shell-script on the Synology and put this script as an automated task executed each night (crontab).
I have created these file:
/volume1/web/scripts/.htaccess:
deny from all
/volume1/web/scripts/.conf-backup/
Directory for backup (timestamped) previous mod_xsendfile.conf file.
Hello all,
I created this issue myself because I have encountered the following problem and I think the solution can be usefull for all:
On my Synology NAS, auto-upgrade of packages is enable. So my Apache2.2 or Apache2.4 packages are automatically upgraded (and their configuration file reseted).
It's the case for the
mod_xsendfile.conf
, which is automatically reseted for each package upgrade.This reset set the
XSendFilePath
to it's default value rather than my custom needed for KodiWebPortal:Value needed for KodiWebPortal when download is enable (as example):
So, to prevent the reset of this value in the
mod_xsendfile.conf
, I have created a little shell-script on the Synology and put this script as an automated task executed each night (crontab).I have created these file:
Directory for backup (timestamped) previous
mod_xsendfile.conf
file.(it's my own script for my own Apache2.2 package ; if you use Apache2.4, change filepath).
Then, I configured in Synologi's DSM a new cron:
This script can be optimized with (some ideas):
mod_xsendfile.conf
content before updating itmod_xsendfile.conf
backup after X daysDo not hesitate to improve it and submit your script :) !
Sincerely,
The text was updated successfully, but these errors were encountered: