jdauphant / ansible-role-nginx

Ansible role to install and manage nginx configuration
655 stars 302 forks source link

disable default config #208

Open carlba opened 6 years ago

carlba commented 6 years ago

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

jdauphant commented 6 years ago

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

megheaiulian commented 6 years ago

@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.

neslinesli93 commented 6 years ago

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

jdauphant commented 6 years ago

@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

neslinesli93 commented 6 years ago

Done, check #231