Forum Discussion
Matt_108113
Nimbostratus
Jul 15, 2009Using Irules to mimic apache Virtual hosts
I would like to use I rules to mimic Apache Virtual Hosts.
I have a web server that has a bunch of sites on it and instead of setting up virtual hosts on Apache I wanted to see if I cou...
Bill_Callahan_8
Nimbostratus
Jul 17, 2009Can you set a variable based on the HTTP::host and use that variable so you don't have to specify each site?
Something like:
set sitedir [string tolower [HTTP::host]]
HTTP::header replace Host "www.apacheserver.com"
Prepend /site1 to the URI
HTTP::uri "/sitedir[HTTP::uri]"
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