Forum Discussion
BlackCisco_1037
Nimbostratus
Aug 15, 2007Extend domain name that connects to Irule
Hi,
I am reading this forum frequently and got a lot of use full information from it and finally i can ask something.
I have wrote an irule and evrytime it is used it is redirected to the index.php. For example www.blockmeblockmeblockme.com/images/1.jpg ends up on our Apache box as a request to index.php
The problem we have with this is we cannot log the entire request (just the domain part) because we don’t know what file was originally requested.
Would it be possible to change the loadbalancer configuration so the original requested file (in the example above /images/1.jpg) will be part of the request on the Apache box?
Gr BlackCisco
- JRahm
Admin
Post your rule and I'm sure someone will be able to help you out. - Kirk_Bauer_1018
Nimbostratus
You can probably include the original URI as a parameter to the page, something like: - BlackCisco_1037
Nimbostratus
Hi, - Deb_Allen_18Historic F5 AccountWhen I break down your rule logic, it looks like all you are trying to do is re-write the URI to prepend the document root path if it hasn't already been.
when RULE_INIT { set ::DocRoot /virtual/upcnl2a/stoppage/ } when HTTP_REQUEST { if { !([string tolower [HTTP::uri]] contains $::DocRoot)}{ HTTP::uri $::DocRoot[HTTP::uri] } }
- BlackCisco_1037
Nimbostratus
Hi everyone, - BlackCisco_1037
Nimbostratus
Deb, - BlackCisco_1037
Nimbostratus
Helllo, - Deb_Allen_18Historic F5 AccountIt sounds like you are hitting a non-existent page, and your portal is displaying the default page instead of sending a 404/Not Found.
browser requestsserver will get request for ====================================================== /images/logo.jpg/virtual/upcnl2a/stoppage/images/logo.jpg /images/stop.gif/virtual/upcnl2a/stoppage/images/stop.gif /css/style.css/virtual/upcnl2a/stoppage/css/style.css /images/flageng.gif/virtual/upcnl2a/stoppage/images/flageng.gif /images/1.jpg /virtual/upcnl2a/stoppage/ /index.php/virtual/upcnl2a/stoppage/
browser requestsserver will get request for ====================================================== /images/logo.jpg/virtual/upcnl2a/stoppage/images/logo.jpg /images/stop.gif/virtual/upcnl2a/stoppage/images/stop.gif /css/style.css/virtual/upcnl2a/stoppage/css/style.css /images/flageng.gif/virtual/upcnl2a/stoppage/images/flageng.gif /images/1.jpg /virtual/upcnl2a/stoppage/images/1.jpg /index.php/virtual/upcnl2a/stoppage/index.php
- BlackCisco_1037
Nimbostratus
Hi deb,
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