Closed git-SwitchBlade closed 6 months ago
I'm pretty sure that your default.conf
isn't considered a template, so you're actually running the container with the default configuration, not your default.conf
. You probably wanted to override the default template file:
- ./default.conf:/etc/nginx/templates/conf.d/default.conf.template:ro
- ```
I checked inside the docker, /etc/nginx/templates/conf.d/default.conf.template was overwritten by ./default.conf, and any edits in default.conf are reflected inside the docker as well
I'll have some time to look into this tomorrow.
Sure, Thanks
I checked. As suspected, your default.conf
did not override the default.conf.template
and the actual configuration was the default one from the container. You need to change the mount instruction to
- ./default.conf:/etc/nginx/templates/conf.d/default.conf.template:ro
When I do that, I get a 404
with curl and no entries in the nginx error log.
Oh correct, thank you so much ;)
Hi Community,
I have set up a docker container with nginx and modsecurity, with a nginx default.conf but when I try to reach http://localhost, I get
400 Resquest Code Request Header Or Cookie Too Large
, Below is the screenshot attached and my default.confBelow is the docker file used
Thanks in advanced for the help