HelloZeroNet/ZeroNet

Subpage reverse proxy (nginx reverse proxy ver_1.10.3) Debian_9x_64bit new zeronet

Open

#1,193 opened on Nov 22, 2017

View on GitHub
 (5 comments) (3 reactions) (0 assignees)JavaScript (2,245 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (18,200 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

I want to use sub-page reverse proxy zeronet somewhere. What should I do?

For example: Client Request https://www.a.com/zeronet/ The actual visit is on the server zeronet (127.0.0.1:43110/zLSmz1ekvt1MpCPMKeJPjgmk96fUYVr8WJ fictitious address)

nginx configuration: This will jump to the home page ( https://www.a.com/1HeLLo4uzjaLetFx6NH3PMwFP3qbRbTf3D )

location /uid/ {
      proxy_pass http://127.0.0.1:43110/zLSmz1ekvt1MpCPMKeJPjgmk96fUYVr8WJ/; #fictitiou address
      proxy_set_header Host $host;
      proxy_http_version 1.1;
      proxy_read_timeout 1h;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection "upgrade";
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        } 

Contributor guide