From: Lorin Hochstein Date: Wed, 4 Feb 2015 02:24:50 +0000 (-0500) Subject: add index.html and nginx.conf X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=f992e70ce0571bbeb9d0e3b36635b11acd19bfd8;p=ansiblebook.git add index.html and 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; + } +}