Upgrade Apache2 on my Owncloud server

Dear OwnCloud community,

Owncloud Server OS: Ubuntu 16.04
Owncloud version: 10+
Apache2 version: 2.4.18

I would like to upgrade apache2 to the latest version but not to lose my apache2 custom settings.
I tried to upgrade and copy back /etc/apache2/apache2.conf but my owncloud server has upgrade occ needed message after. Can someone guide me through this task? Thank you

could you explain what you mean by this?

My plan is

  1. copy apache2.conf
  2. upgrade apache
  3. add-apt-repository ppa:ondrej/apache2
  4. apt-get update
  5. apt-get dist-upgrade
  6. copy back apache2.conf.
    Please tips on what I am doing wrong :slight_smile: