openresty / openresty/docker-openresty

About nginx.conf and conf.d/default.conf

Open
#90 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

documentation enhancement help wanted
Dominant language
Dockerfile
Stars
1k
Forks
536
Avg merge
1d 32m
Merged PRs (30d)
1

Description

I have tried forllowing:

  • Added my nginx.conf, however - still default.conf was read, although I never included it. Like this include is forced somewhere
  • Deleted defult.conf. Nothing works.
  • Moved all server directives from my nginx.config to default.conf - now things started working. Even though I never included default.conf in my nginx.conf.

Why is this happening?

Contributor guide

No contributing guide indexed for this repository

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 comparing the referenced nginx.conf with conf.d/default.conf and the default.conf file, then trace how the container loads those configuration files. Confirm which include or startup behavior causes default.conf to be read, and document the explanation and expected configuration behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, nginx
Domain
infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.