HelloZeroNet/ZeroNet

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

Aperta

#1193 aperta il 22 nov 2017

 (5 commenti) (3 reazioni) (0 assegnatari)JavaScript (2282 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (18.764 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor