# Update bug: rewrite apache config file loosing custom port

**URL:** <https://forums.vitalpbx.org/t/update-bug-rewrite-apache-config-file-loosing-custom-port/3831>\
**Category:** VitalPBX 4\
**Created:** [March 14, 2024, 5:42pm UTC](https://forums.vitalpbx.org/t/update-bug-rewrite-apache-config-file-loosing-custom-port/3831 "2024-03-14T17:42:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarianGeorge](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/mariangeorge/32/3987_2.png) [@MarianGeorge](https://forums.vitalpbx.org/u/MarianGeorge)\
**Post date:** [March 14, 2024, 5:42pm UTC](https://forums.vitalpbx.org/t/update-bug-rewrite-apache-config-file-loosing-custom-port/3831/1 "2024-03-14T17:42:16Z")

</div>

If i use custom https port, any update will reset /etc/apache2/sites-available/vitalpbx.conf back to 443.  
I can guess that if I am using some custom apache configuration, it will be also lost, at every update.

---

<div class="post-metadata">

**Author:** ![miguel](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/miguel/32/415_2.png) [@miguel](https://forums.vitalpbx.org/u/miguel)\
**Post date:** [March 14, 2024, 5:57pm UTC](https://forums.vitalpbx.org/t/update-bug-rewrite-apache-config-file-loosing-custom-port/3831/2 "2024-03-14T17:57:26Z")

</div>

If you set up the custom port via the Web Interface, then the port won’t get overwritten on each update!

---

<div class="post-metadata">

**Author:** ![MarianGeorge](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/mariangeorge/32/3987_2.png) [@MarianGeorge](https://forums.vitalpbx.org/u/MarianGeorge)\
**Post date:** [March 14, 2024, 6:20pm UTC](https://forums.vitalpbx.org/t/update-bug-rewrite-apache-config-file-loosing-custom-port/3831/3 "2024-03-14T18:20:03Z")

</div>

I already did it. I can reproduce the behaviour any time.

---

<div class="post-metadata">

**Author:** ![MarianGeorge](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/mariangeorge/32/3987_2.png) [@MarianGeorge](https://forums.vitalpbx.org/u/MarianGeorge)\
**Post date:** [April 3, 2024, 2:52pm UTC](https://forums.vitalpbx.org/t/update-bug-rewrite-apache-config-file-loosing-custom-port/3831/4 "2024-04-03T14:52:41Z")

</div>

Maybe there is any solution for it?
