Opened 10 years ago
Last modified 10 years ago
#689 new enhancement
ngx_http_referer_module issue
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | major | Milestone: | |
Component: | nginx-module | Version: | 1.7.x |
Keywords: | referer | Cc: | |
uname -a: | Linux nginx.1.7.9.test 2.6.32-042stab094.7 #1 SMP Wed Oct 22 12:43:21 MSK 2014 i686 i686 i386 GNU/Linux | ||
nginx -V: |
nginx version: nginx/1.7.9
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) configure arguments: --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_gzip_static_module --with-http_geoip_module |
Description
hello,
when i use nginx all versions as a proxy server.
i found the ngx_http_referer_module did not work as expected.
i configure it like this:
valid_referers none blocked server_names $host;
i use $host variable and it did not work as expected.
it is a BUG or not?
if it is not a BUG,i wish you can add this function in the next nginx version.
thanks.
Merry Christmas!
Note:
See TracTickets
for help on using tickets.
Variables are not supported by the
valid_referers
directive, and the$host
string will be checked literally.Additionally, I don't see how it make sense here - the
server_names
parameter already allows everything matched by the server{} block in question (unless you are configuring this in a default server). What problem you are trying to solve?