From d941562980cced00101f41856b058980f54828a0 Mon Sep 17 00:00:00 2001 From: Matthew Scragg Date: Tue, 9 Sep 2014 15:46:41 -0500 Subject: [PATCH] Update README.md --- README.md | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index b54cc90..3307e5c 100644 --- a/README.md +++ b/README.md @@ -48,28 +48,29 @@ sudo bash install.sh Create a file called realms.conf in /etc/nginx/conf.d -```/etc/nginx/conf.d/realms.conf``` +``` +/etc/nginx/conf.d/realms.conf +``` Put the following sample configuration in that file. -``` -server { - listen 80; - - # Your domain here - server_name wiki.example.org; - - location / { - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header Host $http_host; - - proxy_pass http://127.0.0.1:5000/; - proxy_redirect off; - - } -} -``` + server { + listen 80; + + # Your domain here + server_name wiki.example.org; + + location / { + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Host $http_host; + + proxy_pass http://127.0.0.1:5000/; + proxy_redirect off; + + } + } + Test Nginx config ```sudo nginx -t```