Git Product home page Git Product logo

Comments (4)

Southyang avatar Southyang commented on June 30, 2024
    # 访问IP,则会自动访问对应地址IP:6412
    location / {
        proxy_pass http://localhost:6412/;
    } 

我改成了这样,就可以直接访问IP进行转发了,好奇怪

from van-nav.

Mereithhh avatar Mereithhh commented on June 30, 2024

如果想通过子路径访问,还应该修改一些 nginx 配置,之前我踩过坑,记不太清楚了。但原理大概是要保证把你访问的 url 中的 pathname 中截取制定的前缀后,再反代到处理后的 pathname。

我建议你通过不同的域名进行反向代理比较合适。如果非要这么做,暂时我没有现成的方案(配置文件)可以给你直接用,等我有时间的话,我会研究一下加到对应项目的文档里(可能要一阵子才会有时间做这个了)

from van-nav.

Southyang avatar Southyang commented on June 30, 2024

好的好的,我把nav项目配置成用域名直接访问就OK的,博主别再弄这个啦,有点浪费时间hh

from van-nav.

Mereithhh avatar Mereithhh commented on June 30, 2024

好的

from van-nav.

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.