trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Rea <luca....@contactlab.com>
Subject R: Allow only one host access to sub-url
Date Tue, 23 Oct 2012 19:22:22 GMT
Try this:
map  https://www.example.com/service/
http://backend.example.com/service/ @src_ip=0.0.0.0-8.8.8.7 @action=deny @src_ip=8.8.8.8 @action=allow
@src_ip=8.8.8.9-254.254.254.254 @action=deny






Luca Rea

Reparto IT
System engineer
__________________________________

ContactLab s.r.l.
Via Natale Battaglia 12
20127 Milano
Tel. +39.02.283118.1
Fax. +39.02.70030269
http://www.contactlab.com
__________________________________

E-mail & E-marketing Evolution


----- Messaggio originale -----
Da: Jan-Frode Myklebust [mailto:janfrode@tanso.net]
Inviato: Tuesday, October 23, 2012 09:05 PM
A: users@trafficserver.apache.org <users@trafficserver.apache.org>
Oggetto: Allow only one host access to sub-url

I need to allow the whole world access to https://www.example.com/ but
only one host (src_ip) access to https://www.example.com/service/.
What's the map rules needed to implement this?

Shouldn't something like this be the way to do it?

     map  https://www.example.com/service/
http://backend.example.com/service/ @action=allow @src_ip=8.8.8.8
@action=deny @src_ip=0.0.0.1-254.254.254.254
     map  https://www.example.com/ http://backend.example.com/

Unfortunately I don't seem to be able to get this to work? BTW what
are the order @action and @src_ip should be listed in?


  -jf



Mime
View raw message