location proxy_pass http 127 81 proxy_redirect off proxy_set_header Ho

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
location / {
proxy_pass http://127.0.0.1:81/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
}
location ~* \.(pdf|txt|tar|jpg|gif|png)$ {
root /home/tek/workspace/tekGallery/src/Gallery/media;
}