From d058b92e51f353c690b5e9a653c46416a8abd6dc Mon Sep 17 00:00:00 2001 From: kev Date: Sat, 16 Jan 2016 22:53:20 +0800 Subject: [PATCH] update --- discuz/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/discuz/README.md b/discuz/README.md index 9a01803..433f7f1 100644 --- a/discuz/README.md +++ b/discuz/README.md @@ -36,4 +36,21 @@ mysql: restart: always ``` +## /etc/nginx/sites-enabled/discuz + +``` +server { + listen 80; + server_name discuz.datageek.info; + location / { + proxy_pass http://127.0.0.1:8000; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } +} +``` + +> :warning: You should pass HTTP headers to fix wrong URL. + [1]: http://www.discuz.net