ansible-role-nginx icon indicating copy to clipboard operation
ansible-role-nginx copied to clipboard

disable default config

Open carlba opened this issue 6 years ago • 5 comments

In CentOS 7 there is a file called default.conf that clashes with my own site how do I disable that?

carlba avatar Feb 27 '18 10:02 carlba

The default default.conf is normally removed : https://github.com/jdauphant/ansible-role-nginx/blob/0d9019cf89283b878f0e077f5da4d2748b7c352a/tasks/remove-defaults.yml

jdauphant avatar Feb 28 '18 14:02 jdauphant

@jdauphant In some later versions of nginx it seems there is a default.conf file in /etc/nginx/sites-available/. Currently the role removes a file called default (not default.conf) in remove-defaults.yml.

megheaiulian avatar Apr 28 '18 09:04 megheaiulian

As noted by @megheaiulian this is kind of a problem...

neslinesli93 avatar Oct 07 '18 15:10 neslinesli93

@megheaiulian @neslinesli93 I get it, thanks for the report. You can submit a PR following the conf.d/default.conf removal but for sites-available/default.conf

jdauphant avatar Oct 07 '18 21:10 jdauphant

Done, check #231

neslinesli93 avatar Oct 08 '18 19:10 neslinesli93