Forum Discussion
scarpozzi_82104
Jan 26, 2011Nimbostratus
Reverse-proxying & URI rewriting
I may be creating a lot of work, but I'm wondering if this can be done via an iRule.
We've got a webserver here that's hosting personal web space for a few thousand users. We have a vendor that's willing to host these for us, but we want to make it transparent to the user. Currently, the URL/URI is formatted http://users.site.com/username When we switch to the new system, the URL will be http://external.host.com/xp/company/username/
If the user types the URL/URI format I first mentioned, that should be fairly straightforward...I'm just wondering how to write an iRule that would cover extra characters the users may add, like http://users.site.com/username/ or http://users.site.com/username/folder1/index.html to disect and reassemble it on the other side. Are there any examples/documentation of how to do these kinds of rewites for a reverse-proxy?
If that's not going to be possible or too complicated, I'll settle for a redirect.
Thanks.
- Chris_MillerAltostratusWill the file/folder structure still be the same?
- scarpozzi_82104NimbostratusThe file/folder substructure will be the same from the user's folder down...so your example is correct.
- scarpozzi_82104NimbostratusThe file/folder substructure will be the same from the user's folder down...so your example is correct.
- Chris_MillerAltostratusThanks.
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