docker-php-nginx icon indicating copy to clipboard operation
docker-php-nginx copied to clipboard

about server.conf and nginx.conf

Open youyifentian opened this issue 3 years ago • 0 comments

i can mount a configuration file for nginx but i must enter the container edit the nginx.conf file However, it doesn't make me feel comfortable because,if i want to use the default port 8080 settings,I have to get into the container,edit or delete some code of nginx.conf file,so that would make it look useless for mount a configuration file

so why not move some code of nginx.conf to /etc/nginx/conf.d/server.conf or /etc/nginx/conf.d/default.conf for default config some code like: server { listen [::]:8080 default_server; listen 8080 default_server; server_name _; ..............

so We can edit server.conf or default.conf without entering the container

youyifentian avatar Jun 24 '22 13:06 youyifentian