1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00
This commit is contained in:
kev 2016-01-16 22:53:20 +08:00
parent 727f7a100d
commit d058b92e51

View File

@ -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