From f992e70ce0571bbeb9d0e3b36635b11acd19bfd8 Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Tue, 3 Feb 2015 21:24:50 -0500 Subject: [PATCH] add index.html and nginx.conf --- ch02/playbooks/files/index.html | 10 ++++++++++ ch02/playbooks/files/nginx.conf | 13 +++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 ch02/playbooks/files/index.html create mode 100644 ch02/playbooks/files/nginx.conf diff --git a/ch02/playbooks/files/index.html b/ch02/playbooks/files/index.html new file mode 100644 index 0000000..d249fb7 --- /dev/null +++ b/ch02/playbooks/files/index.html @@ -0,0 +1,10 @@ + + + Welcome to nginx, via Ansible! + + +

nginx, configured by Ansible

+

If you can see this, Ansible successfully installed nginx.

+ + + diff --git a/ch02/playbooks/files/nginx.conf b/ch02/playbooks/files/nginx.conf new file mode 100644 index 0000000..594b47c --- /dev/null +++ b/ch02/playbooks/files/nginx.conf @@ -0,0 +1,13 @@ +server { + listen 80 default_server; + listen [::]:80 default_server ipv6only=on; + + root /usr/share/nginx/html; + index index.html index.htm; + + server_name localhost; + + location / { + try_files $uri $uri/ =404; + } +} -- 2.44.0