Nextcloud client redirect to local ip

Hi Guys ,
Nextcloud desktop & mobile client redirect to local ip instead of domain when i try to login , could someone help please .
NB : Fresh Installation on Ubuntu 20.04 server

You probably need to set the overwritehost parameter.

https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/config_sample_php_parameters.html#proxy-configurations

1 Like

You are right overwritehost parameter solve my problem Thank you @KarlF12 for your help .