Hi everyone!
Iām currently using the apache image for Nextcloud.
I have a non-dockerized nginx in front, with the following configuration:
server {
listen 443 ssl;
server_name cloud.mydomain.com;
location / {
proxy_pass http://localhost:8888;
}
include /etc/nginx/conf.d/letsencrypt.location;
}
In some situations, like for example, when trying to log out, the url is: http://localhost:8888/logout?requesttoken=some_token_here
So instead of building the url to the domain name, it goes to localhost.
Iāve seen in the logs when firing up the container:
AH00558: apache2: Could not reliably determine the serverās fully qualified domain name, using 172.17.0.2. Set the āServerNameā directive globally to suppress this message
Is that related? Is the solution telling Apache which should be the domain instead of localhost?
If so, how can I do it with the apache image for docker?
Thank you very much in advance, let me know if there is any more information I should provide!