The port number is showing in the URL bar. Can it be hidden?

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 20.07.1
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04 LTS
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.41
PHP version (eg, 7.4): 7.4.3

The issue you are facing:

Hi, community members.

I can access my Nextcloud if I type Sure, that works fine. It will lead me to the site. However, once in there, the URL bar shows the number 444. Is that normal? Is it always like that? I was expecting that it will be hidden. If that isn’t normal behaviour, what should I do to hide it? Is it something I shouldn’t be worried about?

Thank you in advance.

http default is 80
https default is 443

only then you can miss the port number in the url.

@curtsareda you can hide the port by using a reverse proxy.

yes, but with reverse proxy you only map 80/443 e.g. to 444.

Hi, Mageunic,

Yes, I do use the reverse proxy because my Nextcloud is a snap installation and I have other websites in the same server.

My virtual host configuration below:

For nextcloud snap

<VirtualHost *:80>
RewriteEngine On
RewriteCond %{SERVER_NAME}
RewriteRule / [END,R]
ProxyPreserveHost On
ProxyRequests Off
ProxyPass /
ProxyPassReverse /

How can I stop the :444 port from showing in my url bar? Is there a way?

@curtsareda I don’t understand why you have these lines:

RewriteRule / [END,R]

ProxyPass /
ProxyPassReverse /

which port do you use to connect to your nextcloud in LAN ( 444 or 81 ?) ?

I think it goes through port 81 first on very first connect, then within snap it gets converted to 444. But, that’s just my guess. I placed the RewriteRule in there so that when I type it would go directly to 444 without having to go through 81.

I’m a newbie though, so yeah, please tell me if this is wrong and what should I do?

@curtsareda ok so I think you have to delete this line :

RewriteRule / [END,R]

and modify your proxy lines to get this :

ProxyPass /
ProxyPassReverse /

and add this line :

RemoteIPHeader X-Forwarded-For

(this line is for nextcloud sees the ip of the client requesting access and not the ip of your reverse proxy which in your case is => internal ip)

after that , do this command: sudo a2enmod remoteip and restart apache

@Mageunic Hello. Thank you for your advice. However, after doing that, the port number 444 still appears in the URL bar.

You have to add the listener under port 443, and then forward to port 444.

@curtsareda have you delete the cookies of your subdomain on your web page?