Am 30.04.2012 20:04, schrieb ArtemGr:
> Tommi Mäkitalo<tommi@...>  writes:
>>     "mappings" : [
>>       {
>>         // map / to calc<at>  calc
>>         "url" : "^/%",
>>         "target" : "calc<at>  calc"
>>       },
> Any chance adding "host" into the mappings?
>
>
>
Just do it. It is implemented:

"mappings" : [
      {
        // map / to calc<at>  calc
        "url" : "^/%",
        "target" : "calc<at>  calc",
        "host" : "tntnet.org"
  }
]


should work. Also

     "ssl" : 0

or

     "ssl" : 1

is a mapping, which matches only without/with ssl. Or:

     "method" : "POST"

for a mapping, which matches only on POST requests. Note that host and 
method are bot regex, so that

     "host" : "tntnet.org"

matches also www.tntnet.org or even "foobartntnet.orgcom". If you want 
to be precise, you must write:

     "host" : "^www\.tntnet\.org$"



Tommi


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to