HelloZeroNet/ZeroNet

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

Open

#1,193 建立於 2017年11月22日

在 GitHub 查看
 (5 留言) (3 反應) (0 負責人)JavaScript (18,200 star) (2,245 fork)batch import
enhancementhelp wanted

描述

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;
        } 

貢獻者指南

Subpage reverse proxy (nginx reverse proxy ver_1.10.3) Debian_9x_64bit new zeronet · HelloZeroNet/ZeroNet#1193 | Good First Issue