GithubHelp home page GithubHelp logo

Reverse proxy appears 404[HELP] about zoraxy HOT 6 CLOSED

allmors avatar allmors commented on September 25, 2024
Reverse proxy appears 404[HELP]

from zoraxy.

Comments (6)

Morethanevil avatar Morethanevil commented on September 25, 2024 1

Your request comes from the internet to your hostmachine and then in the docker container. 127.0.0.1, localhost points INSIDE the container., because Zoraxy runs inside the container. This is not a bug, this is normal. Your setup would work if it were not a container then localhost, 127.0.0.1 would be your host machine.

This is why it works with your public IP and port ☺️

from zoraxy.

allmors avatar allmors commented on September 25, 2024 1

You can set a static IP for Zoraxy. This works too. Then you can use the static IP of Zoraxy and the port inside the container. You can find a little guide in the wiki

Thanks for your answers, I made a mistake

from zoraxy.

tobychui avatar tobychui commented on September 25, 2024

@allmors This is expected behavior when deploy inside docker. The solution is reverse proxy through the public ip address of your instance (assuming it is directly exposed to the internet with a public IP address). Good to see that you have already figure out the solution yourself!

If your problem have been resolved and you got no further questions, please close this issue.

from zoraxy.

allmors avatar allmors commented on September 25, 2024

@allmors This is expected behavior when deploy inside docker. The solution is reverse proxy through the public ip address of your instance (assuming it is directly exposed to the internet with a public IP address). Good to see that you have already figure out the solution yourself!

If your problem have been resolved and you got no further questions, please close this issue.

Well, I thought it would be like nginx proxy manager. Even if it is a container deployment, it can still use the host's loopback address.

If it is normal through the public network, then the port must be exposed, which feels a bit redundant.

from zoraxy.

Morethanevil avatar Morethanevil commented on September 25, 2024

You can set a static IP for Zoraxy. This works too. Then you can use the static IP of Zoraxy and the port inside the container. You can find a little guide in the wiki

from zoraxy.

allmors avatar allmors commented on September 25, 2024

You can set a static IP for Zoraxy. This works too. Then you can use the static IP of Zoraxy and the port inside the container. You can find a little guide in the wiki

I forgot that the docker container has a network card docker0, because all projects are deployed by docker, I should not use 127.0.0.1, but the loopback address of docker0, such as 172.17.0.1
image
image

If possible, you can refer to nginx proxy manger, which supports local host loopback address.

from zoraxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.