我正在使用锡代来反向代理。我有三个子域指向同一个服务器,我们需要它们在内部指向特定的端口。也就是说,从任何特定子域映射到特定端口的端口80。参见下面的配置示例。
配置如下所示:
Port 80
#Allow 127.0.0.1
#ReverseOnly yes
upstream 127.0.0.1:8115 "website.example.com"
upstream 127.0.0.1:3000 "api.example.com"
upstream 127.0.0.1:9000 "socket.example.com"当我提取任何子域时,我得到的只是:
访问被拒绝
此代理的管理员尚未将其配置为处理来自主机的请求。
Generated by tinyproxy version 1.8.3.我哪儿都找不到充分的文件。我在考虑联系维修人员。请帮帮忙。
发布于 2020-08-12 18:34:18
我希望您已经得到了答案,但如果没有,下面是允许客户端连接到代理的设置:
#
# Allow: Customization of authorization controls. If there are any
# access control keywords then the default action is to DENY. Otherwise,
# the default action is ALLOW.
#
# The order of the controls are important. All incoming connections are
# tested against the controls based on order.
#
Allow 127.0.0.1
#Allow 192.168.0.0/16
#Allow 172.16.0.0/12
#Allow 10.0.0.0/8
Allow 0.0.0.0/0在我的示例中,我允许使用0.0.0.0/0,因为我正在将一个反向代理从互联网配置到我的其他VPS。
另外,上面的配置是用于前向代理,而不是反向代理。
要启用反向代理函数,至少需要以下内容:
ConnectPort 80
ConnectPort 443
ReversePath "/" "http://<your server IP>:8080/"
ReverseOnly Yes
ReverseMagic Yeshttps://stackoverflow.com/questions/43879977
复制相似问题