first of all, I am completely new to I-MSCP and Apache2. I have never worked with the tools before. So please be patient with me and forgive some stupid questions :-). I have tried to do my research but now I need your help.
My goal was having a git repository available in the web. I followed some tutorials and I needed to make some modifications to the config file of the virtual host under /etc/apach2/sites-available/domain.de.conf. I was suprised: after running "service apache2 reload" everything worked as it should. Here are the modifications and additions I did printed in bold italic:
SetEnv GITWEB_CONFIG /etc/gitweb.conf
Alias /static/gitweb.css /usr/share/gitweb/static/gitweb.css
Alias /static/gitweb.js /usr/share/gitweb/static/gitweb.js
Alias /static/git-favicon.png /usr/share/gitweb/static/git-favicon.png
Alias /static/git-logo.png /usr/share/gitweb/static/git-logo.png
ScriptAlias /gitweb.cgi /usr/lib/cgi-bin/gitweb.cgi
The rest is unchanged.
After I ran the update of I-MSCP (i-MSCP PhpMyAdmin Addon updated to version 18.104.22.168 - which by the way failed with the message "an error has occured" ) the virtual host config file has been reset.
My question is: how can I protect my personal modifications from future updates? I found no way to make such changes in the web frontend.
Thanks for your help!