dnsmasq中的通配符路径? [英] wildcard paths in dnsmasq?

查看:367
本文介绍了dnsmasq中的通配符路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在路径模式中设置通配符*?

Is it possible to set a wildcard * in a path pattern?

address=.example.com/foo/*/bar似乎不起作用.

address=.example.com/foo/xxx/bar可以工作,但是我需要匹配随机字符,而且我不知道它们提前了什么.

address=.example.com/foo/xxx/bar works but I have random characters I need to match for and I don't know what they are ahead of time.

推荐答案

不可能.

dnsmask仅与主机名的解析有关.

dnsmask is about the resolution of the host name only.

斜线后的所有内容都位于Web浏览器(或客户端)和Web服务器之间,名称服务器永远都看不到这部分.

Everything after the slash is between the web browser (or client) and the web server, the name servers don't ever get to see this part.

这可能会造成混淆,因为dnsmasq在许多设置中都使用'/'作为其分隔符,但这与url的路径部分无关,只需选择配置文件定界符即可.

It can get confusing, because dnsmasq uses '/' as its separator character in a lot of its settings, but this is nothing to do with the path part of a url, simply a chose of config file delimiter.

要对您希望用户看到的Web服务器的哪些部分进行细粒度的操作,您应该使用Google搜索"http代理"或可能的透明http代理",这应该可以帮助您入门.它们提供了一个中间服务器,可以 看到URL的路径"部分,并进行此级别的过滤.

To achieve some fine grained manipulation of what parts of a web server you want your users to see, you should be googling "http proxies" or possibly "transparent http proxies" and this should get you started. These provide an intermediate server that does get to see the "path" part of the URL, and con do this level of filtering.

这篇关于dnsmasq中的通配符路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆