Skip to content

Commit

Permalink
docs/install-tutorial.rst: add proxy_set_header
Browse files Browse the repository at this point in the history
proxy_set_header Host is required so flask knows the hostname it should respond to when being requested via a socket.
not doing so results in redirects to \`localhost\` when trying add new pastes
  • Loading branch information
makefu committed Oct 20, 2015
1 parent 7c446b4 commit 4dd4f86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/install-tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ A nginx configuration i.e. in ``/etc/nginx/conf.d/bepasty.conf``:
client_max_body_size 32M;

location / {
proxy_set_header Host $http_host;
proxy_pass http://pasty_server;
}

Expand Down

0 comments on commit 4dd4f86

Please sign in to comment.