nextcloud / ansible-collection-nextcloud-admin

The ansible galaxy for your nextcloud administrative needs.
https://galaxy.ansible.com/nextcloud/admin
BSD 2-Clause "Simplified" License
138 stars 77 forks source link

nginx always shows default page #332

Open sleepy-nols opened 9 months ago

sleepy-nols commented 9 months ago

Expected behavior: After installing the webpage shows the Nextcloud login.

Actual behavior: When installing with

nextcloud_install_websrv: true
nextcloud_websrv: "nginx"
nextcloud_disable_websrv_default_site: true

nextcloud_install_tls: false
nextcloud_tls_enforce: false

nginx always shows the default nginx plash page. I am installing into an lxd container with bookworm cloud image.

Solution approach: I found the file /usr/share/nginx/html/index.html while greping the whole container for Welcome to nginx! as on the splash page. When removing this file the webserver 404s. This suggests that this is the file the webserver is accessing. I have not found anything in the nginx config that suggest that it points to that file. It could be symlinked to somewhere else though. When installing with apache the issue does not occur.

Can anyone reproduce this?