Forum Discussion
Derek_Murphy_38
Nimbostratus
Oct 05, 2010need help figuring out a proxy irule
The below post has a bunch of good information that I think has me in the right direction.
http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/aff/5/aft/1172576/afv/topic/asg/50/D...
Derek_Murphy_38
Nimbostratus
Oct 05, 2010That's great info Ben.
I actually ended up creating a new virtual server, with a new IP because I wasn't sure if applying the proxypass irule would affect my other virtual servers. Now however, I think I'm a little confused in my thought processes... so let me recap with my proposed layout.
www.domain.com/somestring <--main webserver, separate virtualServer
blog1.domain.com/ <---blogVirtualserver
blog2.domain.com/ <---same blogVirtualserver as above
blog3.domain.com/ <---my new blog, now on a separate virtualserver/IP but same appserver default pool as the above 2 blogs.
My original thought was to apply the irule to the blog3.domain.com virtual server, but now... I"m not sure that would work. I think what I need to do is apply the irule to the main webserver virtualserver for www.domain.com since /somestring is the uri that I want proxying to the internal webserver.
So,
I'm suspecting that my datagroup I will have a single string entry that will look something like..
www.domain.com/somestring blog3.domain.com/
however, note the below comment from the irule.. does this imply that the above syntax is not correct?
Note that the clientside entry only ends in a / if there is no directory.
The server entry only ends in a slash if the client entry does.
Also, I assume this will only work for the main page? Links internal to the blog will still be viewed as blog3.domain.com/some/path/to/blogpost correct?
Is that where the following comment comes into play?
ProxyPass does not rewrite links embedded within pages by default, just
redirects. If you want to change this, edit the proper variable in RULE_INIT
and apply the generic "stream" profile to the virtual server.
I checked the profiles, and it looks like there is a stream profile there, but when I click on it, under settings it just has an empty source/target field, so I'm not sure what to put in there, or what the proper variable would be in RULE_INIT. Did you have to do any of that stuff?
The IP commands are easy enough.. those I can deal with. The proxying is what always confuses me.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
