Forum Discussion
CSA
Nimbostratus
Mar 23, 2010Adding www. before HTTP::host / regexp matching
Hi,
We have today many websites like www.AA.domain.com where AA is a ccTLD (a country code). We want to have the websites working when users type AA.domain.com.
In the D...
hoolio
Cirrostratus
Oct 21, 2010Hi bigbrother,
I was using tclsh.exe on cygwin for Windows to test with the TCL time command. You could install TCL for Linux and use that. Or you can use an iRule:
when RULE_INIT {
log local0. "result: [regexp {(?:^\w\w\.domain\.com$)} aa.domain.com]"
}
iRules doesn't currently provide the time command, so you can use timing instead if you want to compare the efficiency of different commands:
http://devcentral.f5.com/wiki/default.aspx/iRules/timing
Note: iRules are currently based on TCL 8.4. So if you want to use the same library on Centos, install 8.4 (not 8.5).
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects