-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My default.conf is always deleted when restart #470
Comments
You have |
Hello, My configuration is very simple, here is my docker-compose file :
When I update my default.conf from my server and then I connect in the container : service nginx reload. The configuration is updated and my modification in default.conf works. But if I restart my container : docker-compose restart. My default.conf is back with the default configuration. For your information, I am using an old version of your container (june or may 2015, maybe you fixed it in your last version :-) ) |
Ok the thing is that What kind of changes do you want to make? you can either put custom configuration in If you want to do something more complicated you can change nginx.tmpl and create your own docker image. |
I am having a total opposite problem now (using docker-compose) that my dfeault.conf is not updating. I added SSL companion which didn't work for me (it added lots of stuff in default file which I want to remove). |
I'm having the same problem that Quentinvarquet had reported. What I am trying to do is change the default nginx behavior. That is, when I access service1.mydomain.com or service2.mydomain.com everything is working great. However, if I access mybox.mydomain.com I am getting an ugly 503 page returned. I would prefer that the connection just get dropped. It is my understanding that I should be able to change a few lines in default.com. Not sure if it will work, but I read I could just change 503 to 444 below. When I make this change and restart the container, it overwrites back to 503. Should I be trying this a different way? server { |
I think you all need to rename your |
Hello, I need to add the following code to my /default.conf, but with volume I cannot edit it, if through the command "cp" once the containers are started:
} |
@prgfranco Please have a detailed look at the README. In short, if you want proxy-wide configuration place your code in a separate file, call it something like |
Hello,
I am using a custom default.conf file in /etc/nginx/conf.d/default.conf
But every time I restart (docker-compose restart) my default.conf file (volume) is back with the default configuration
Do you know how to fix it ? It's the first time I have this problem.
The text was updated successfully, but these errors were encountered: