I try to match specific URL's to specific servers. like this:
xyz.com ---> server1
xyz.com/two ---> server2
test.xyz.com ---> server3
My rules at the moment:
Rule1 matched to server1 (xyz.com) Sharepoint
Rule 2 matched to server2 (xyz.com/two) sap
Rule 3 matched to server3 (test.xyz.com) random web service
This works, but test.xyz.com is able to access /two with test.xyz.com/two But only xyz.com should be able to do this xyz.com/two.
Is there any way to match a specific portion of a string?
I thought that /^test.xyz.com$/ was read like this - ^ is start of match and $ is end of match, but it does not seem to work like that because that would mean that test.xyz.com/two is not a match to rule 3. But it is :(
Hope you understand what i try to accomplish and can help.