Forum Discussion
BMARTIN_12200
Nimbostratus
Dec 15, 2008Add Ip member pool in my header browser
Hello, my application is spread over 24 servers JBOSS cluster of 6 pools of 4 members. To facilitate maintenance I would like to appear in the title of the browser the IP address of the member on whic...
James_Quinby_46
Dec 16, 2008Historic F5 Account
I should have explained - by "insert a response in the headers", I meant that the LTM would be passing the server IP along with the rest of the HTTP response headers. These are not displayed by the browser or in the page source. To see them, you will need to use one of the plug-ins mentioned by hoolio above.
In a normal transaction, the headers will look something like this:
GET / HTTP/1.1
Host: 10.10.10.30
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
HTTP/1.x 200 OK
Date: Tue, 16 Dec 2008 14:46:23 GMT
Server: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch
X-Powered-By: PHP/5.2.4-2ubuntu5.3
Last-Modified: Tue, 09 Dec 2008 14:46:23 GMT
Cache-Control: no-cache
Content-Length: 4636
Connection: close
Content-Type: text/html; charset=utf-8
The first set of headers is sent by the browser, the second is the set of responses from the webserver. hoolio's iRule adds the server IP to the server response headers as follows:
HTTP/1.x 200 OK
Date: Tue, 16 Dec 2008 14:49:45 GMT
Server: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch
X-Powered-By: PHP/5.2.4-2ubuntu5.3
Last-Modified: Tue, 09 Dec 2008 14:49:46 GMT
Cache-Control: no-cache
Content-Length: 4624
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8
Server_IP: 10.10.10.21
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