Discussion:
map_with_referer
Mohd Akhbar
2017-08-22 00:56:53 UTC
Permalink
Hi,

i have a map as follows and it works.
map https://public.mydomain.com https://secret.mydomain.com

then i tried to use map_with_referer to allow referer of mydomain only.
map_with_referer https://public.mydomain.com https://secret.mydomain.com
http://www.mydomain.com .*\.mydomain\.com

and this one not working. it gives me
*Description: The document you requested has moved to a new location. The
new location is "-". *

I've also set below but also fail
CONFIG proxy.config.http.referer_filter INT 1

Any suggestions/advise.

Thank you.
Alan Carroll
2017-08-24 17:57:40 UTC
Permalink
What version of ATS is this? Looking at the code, it should work in 5.3 but
appears to be broken in 7.1.0.
Mohd Akhbar
2017-08-25 00:42:23 UTC
Permalink
Sorry not to include that particular.

Apache Traffic Server - traffic_server - 7.1.0 - (build # 072016 on Jul 20
2017 at 16:02:20)

in my diag.log i got this
[Aug 24 14:36:40.123] Server {0x2b0f7f5b4700} WARNING: Invalid status code
for redirect '0'. Building a response for a temporary redirect.

the map_with_referer setting does prevent access according to my filter but
it fails to redirect the user to specified URL.



thanks
Post by Alan Carroll
What version of ATS is this? Looking at the code, it should work in 5.3
but appears to be broken in 7.1.0.
Alan Carroll
2017-08-25 13:39:43 UTC
Permalink
See PR #2426. I think map_with_referer is broken in 7.1.0.
Post by Mohd Akhbar
Sorry not to include that particular.
Apache Traffic Server - traffic_server - 7.1.0 - (build # 072016 on Jul 20
2017 at 16:02:20)
in my diag.log i got this
[Aug 24 14:36:40.123] Server {0x2b0f7f5b4700} WARNING: Invalid status code
for redirect '0'. Building a response for a temporary redirect.
the map_with_referer setting does prevent access according to my filter
but it fails to redirect the user to specified URL.
thanks
Post by Alan Carroll
What version of ATS is this? Looking at the code, it should work in 5.3
but appears to be broken in 7.1.0.
Leif Hedstrom
2017-08-29 22:52:57 UTC
Permalink
Post by Alan Carroll
See PR #2426. I think map_with_referer is broken in 7.1.0.
We concluded that it’s not broken in 7.1.0 right? Only on master?

— Leif
Post by Alan Carroll
Sorry not to include that particular.
Apache Traffic Server - traffic_server - 7.1.0 - (build # 072016 on Jul 20 2017 at 16:02:20)
in my diag.log i got this
[Aug 24 14:36:40.123] Server {0x2b0f7f5b4700} WARNING: Invalid status code for redirect '0'. Building a response for a temporary redirect.
the map_with_referer setting does prevent access according to my filter but it fails to redirect the user to specified URL.
thanks
What version of ATS is this? Looking at the code, it should work in 5.3 but appears to be broken in 7.1.0.
Alan Carroll
2017-08-30 00:38:52 UTC
Permalink
Correct. It is not broken in 7.1.0.
Post by Alan Carroll
See PR #2426. I think map_with_referer is broken in 7.1.0.
We concluded that it’s not broken in 7.1.0 right? Only on master?
— Leif
Post by Mohd Akhbar
Sorry not to include that particular.
Apache Traffic Server - traffic_server - 7.1.0 - (build # 072016 on Jul
20 2017 at 16:02:20)
in my diag.log i got this
[Aug 24 14:36:40.123] Server {0x2b0f7f5b4700} WARNING: Invalid status
code for redirect '0'. Building a response for a temporary redirect.
the map_with_referer setting does prevent access according to my filter
but it fails to redirect the user to specified URL.
thanks
Post by Alan Carroll
What version of ATS is this? Looking at the code, it should work in 5.3
but appears to be broken in 7.1.0.
Loading...