# Change https port error

**URL:** <https://forums.vitalpbx.org/t/change-https-port-error/4018>\
**Category:** VitalPBX\
**Created:** [April 24, 2024, 4:05pm UTC](https://forums.vitalpbx.org/t/change-https-port-error/4018 "2024-04-24T16:05:44Z")\
**Posts on this page:** 2\
**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:** [April 24, 2024, 4:05pm UTC](https://forums.vitalpbx.org/t/change-https-port-error/4018/1 "2024-04-24T16:05:44Z")

</div>

apache2/ports.conf:  
Listen 4444

apache2/sites-available/default-ssl.conf:  
VirtualHost _default_:4444

apache2/sites-available/vitalpbx.conf:  
VirtualHost \*:4444

Also updated from GUI FW Service. GUI is working.  
But when i try to save something, i got an error:

```auto
An exception has occurred
Exception: API Error: [POST] /events 0 - Failed to connect to 127.0.0.1 port 443: Connection refused at file /usr/share/vitalpbx/www/includes/rest_client.php on line 0

Error Trace
#	File	Function
1	/usr/share/vitalpbx/www/index.php:0	app\Core->run(...args);
2	/usr/share/vitalpbx/www/includes/app/Core.php:0	app\Core->_loadModule(...args);
3	/usr/share/vitalpbx/www/includes/app/Core.php:0	app\Core->loadModuleAction(...args);
4	/usr/share/vitalpbx/www/includes/app/Core.php:0	modules\extensions\extensions->put(...args);
5	/usr/share/vitalpbx/www/modules/extensions/extensions.php:0	modules\extensions\DBStorage->put(...args);
6	/usr/share/vitalpbx/www/modules/extensions/DBStorage.php:0	modules\extensions\DBStorage->save(...args);
7	/usr/share/vitalpbx/www/modules/extensions/DBStorage.php:0	modules\extensions\DBStorage->putExtension(...args);
8	/usr/share/vitalpbx/www/modules/extensions/DBStorage.php:0	EventLogger\EventLogger->addRecord(...args);
9	/usr/share/vitalpbx/www/includes/components/EventLogger/EventLogger.php:0	EventLogger\EventLogger->_addEvent(...args);
10	/usr/share/vitalpbx/www/includes/components/EventLogger/EventLogger.php:0	vitalpbx\rest_client->post(...args);
11	/usr/share/vitalpbx/www/includes/rest_client.php:0	vitalpbx\rest_client->execute(...args);

```

It was working perfectly before last update (today).  
Is working perfectly when I go back to use 443.  
It is not working when i manage to change to 4444. It is still trying to use 443 for some actions.

 ![Screenshot 2024-04-24 at 18.03.25](https://forums.vitalpbx.org/uploads/default/original/2X/3/3136ab383ba7e88fbe2f4e7d1ad0436ed86c4980.png)

---

<div class="post-metadata">

**Author:** ![system](https://forums.vitalpbx.org/uploads/default/original/1X/672b458a1d454755270c2c16adc5316b641c3c6a.png) [@system](https://forums.vitalpbx.org/u/system)\
**Post date:** [May 24, 2024, 4:05pm UTC](https://forums.vitalpbx.org/t/change-https-port-error/4018/2 "2024-05-24T16:05:52Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
