Skip to content

Commit

Permalink
proxy: don't follow redirects and don't rewrite location, pass as is
Browse files Browse the repository at this point in the history
  • Loading branch information
ikreymer committed Nov 29, 2015
1 parent 0273f05 commit de14b72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ http {
resolver 8.8.8.8;
proxy_pass $1$2$is_args$args;

proxy_redirect ~^/(.*)$ $scheme://$host:$server_port/$targethost/$1;
proxy_redirect ~^(http.*)$ $scheme://$host:$server_port/$1;
#proxy_redirect ~^/(.*)$ $scheme://$host:$server_port/$targethost/$1;
#proxy_redirect ~^(http.*)$ $scheme://$host:$server_port/$1;

proxy_buffer_size 128k;
proxy_buffers 100 128k;
Expand Down
2 changes: 1 addition & 1 deletion pywb/archivereplayview.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def _do_req(self, urls, host, env, skip_hosts):

response = self.session.request(method='GET',
url=url,
# allow_redirects=False,
allow_redirects=False,
headers=headers,
stream=True,
verify=False)
Expand Down

0 comments on commit de14b72

Please sign in to comment.