How to switch nginx listening ports

Hello guys,
Can anyone tell me how do I change the nginx listening port for access to the passbolt web interface?

I tried changing the ports in the configuration files in /etc/nginx/conf.d/passbolt.conf and /etc/nginx/nginx.conf, but after restarting the nginx service I lose access to the web interface.

There is, I’m using almalinux8 in the installation.

Thank you for any help!

I think if you want to change https to 4043, for example, you also need to adjust your url in the passbolt.php config so it has Otherwise, https is assumed 443.

1 Like

Hi @garrett,
First of all, sorry for the delay in getting back to you.
Perfect, changing the port in ‘fullBaseUrl’ => ‘’ in the passbolt.php file solves my local access problem, however, does not work. There is a white screen…
I also tried changing ‘fullBaseUrl’ => ‘’ to ‘fullBaseUrl’ => ‘’, but it didn’t work.
Any idea what might be going on?

Thank you for any help!


I made a small POC with self sign certificate:
you need to change the port in /etc/nginx/conf.d/passbolt_ssl.conf from 443 to 4043

server {
  listen [::]:4043 ssl http2;
  listen 4043 ssl http2;

change the fullBaseUrl in /etc/passbolt/passbolt.php
sudo systemctl reload nginx

Please note that when you will do that your browser extension will need to be reconfigured since you are changing the domain for the extension it is like a new server.
So once the previous steps are done
Go with your browser to
Enter your email and do the recovery.


1 Like

And if local access works but not remote I guess check firewall rules and permit 4043?

Hi @max,
Thank you for your help!
I had already changed the port in /etc/nginx/conf.d/passbolt_ssl.conf from 443 to 4043.
My passbolt.php configuration file is like in the attached image.
As for the extension, I’m testing it on a machine that has never accessed passbolt and still doesn’t have the extension.
When I try to access it, it looks like the image that is attached below as well.

Please change the fullBaseUrl with your new domain

and have a look at the console log of your browser to have some indication (console and network)

1 Like

Hi @garrett ,
Firewall rules working !

Thanks a lot for the help gentlemen.
Have a good day!