nextcloud / nextcloud/ansible-collection-nextcloud-admin

nginx always shows default page

Open
#332 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
165
Forks
86
Avg merge
15d 13h
Merged PRs (30d)
1

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the installation with nextcloud_install_websrv, nextcloud_websrv, and nextcloud_disable_websrv_default_site enabled, then inspect the generated nginx configuration and /usr/share/nginx/html/index.html. Compare the nginx setup with the working Apache setup; done means the installed site serves the Nextcloud login instead of the default nginx page.

Written by the indexing model from the issue text.

Assessment

Tech stack
ansible, nginx
Domain
devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.