Compare commits
No commits in common. "ad23896e5fc43e6c82d2b4d3b4bef9d8292f945c" and "633831d95fae60a401a1c2636f2145fe6a1fd987" have entirely different histories.
ad23896e5f
...
633831d95f
@ -1,11 +0,0 @@
|
|||||||
# This is the default catch-all server.
|
|
||||||
# It handles any request for a domain that is not explicitly configured.
|
|
||||||
server {
|
|
||||||
listen 80 default_server;
|
|
||||||
listen [::]:80 default_server;
|
|
||||||
|
|
||||||
server_name _;
|
|
||||||
|
|
||||||
# Return a 404 Not Found error.
|
|
||||||
return 404;
|
|
||||||
}
|
|
@ -14,13 +14,4 @@
|
|||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /etc/nginx/sites-enabled/default
|
path: /etc/nginx/sites-enabled/default
|
||||||
state: absent
|
state: absent
|
||||||
notify: Reload Nginx
|
|
||||||
|
|
||||||
- name: "Create a default catch-all server block"
|
|
||||||
ansible.builtin.copy:
|
|
||||||
src: 00-default-catch-all.conf
|
|
||||||
dest: /etc/nginx/conf.d/00-default-catch-all.conf
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: '0644'
|
|
||||||
notify: Reload Nginx
|
notify: Reload Nginx
|
Loading…
x
Reference in New Issue
Block a user