Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【已解决】请问,如何将浏览器访问请求转发到本机的指定端口? #36

Open
tudoubocai opened this issue Nov 1, 2022 · 0 comments

Comments

@tudoubocai
Copy link

tudoubocai commented Nov 1, 2022

[已解决]
解决方案:用另一个域名。
在vhosts下面添加

  • name: www.xxxx.com
    tlsoffloading: true
    managedcert: true
    default:
    handler: proxyPass
    args: 127.0.0.1:8080
    这样,trojan里面用tr.xxxx.com
    两个域名都走443端口。完美解决!
    ………………………………………………………………………………
    我想在docker下装个博客,端口8080,浏览器通过域名访问443时,显示博客页面。请问该怎么操作?
    我尝试把配置文件改成这样
    default:
    handler: proxyPass
    args: 127.0.0.1:8080
    打开的是静态网页
    还有改了几种,比如把handler添加到http:下面,并注释掉fileserver。网页直接打不开。
    还有几种改法直接导致tls-shunt-proxy不能启动。
    已经google搜了两天,资料太少。
    只能到这里来问了。
    谢谢!
@tudoubocai tudoubocai changed the title 请问,如何将浏览器访问请求转发到本机的指定端口? 【已解决】请问,如何将浏览器访问请求转发到本机的指定端口? Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant