Forum Discussion
RajX_87248
Jul 01, 2011Nimbostratus
Proxypass i Rule Help
Hi Iam trying to do site direction from www.mycompany.com/forums to http://forums.externalhostedcompany.com using proxypass irule. However, the traffic seem to be actually not getting redirected ...
RajX_87248
Jul 26, 2011Nimbostratus
OK now It's working perfect for the /subdirectories but however I am trying to do another layer of subdirectories and its failing.
I have :
www.mycompany.com/subdir1/subdir2 which I am trying to redirect to www.someothercompany.com . It works up to www.mycompany.com/subdir1 level but fails over when I tried to use for subdir2 level.
I believe these are the lines which makes it fail:
if {[substr $clientside 0 1] eq "/"} {
No virtual hostname specified, so use the Host header instead
set host_clientside $orig_host
set path_clientside $clientside
} else {
Virtual host specified in entry, split the host and path
set host_clientside [getfield $clientside "/" 1]
set path_clientside [substr $clientside [string length $host_clientside]]
Any ideas on how I can deal with these double "/subdir1/subdir2/" slashes issue ??
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