Forum Discussion
Dec 26, 2013
BIG-IP : redirect loop : debugging techniques
BIG-IP 11.4.0 Build 2384.0 Final
In my hosts file I point www.mydomain.com to my web-server IP, and in my client-browser I submit the request
http://www.mydomain.com/natural-language-url-1 ...
John_Alam_45640
Dec 27, 2013Historic F5 Account
Do curl -v -H servername.com http://...... To both the virtual and the server. See if either succeeds, and if the results are different.
Post here the entire redirect response So we see the server header.
Check server events log it should tell you why it is redirecting.
It is also possible that the server is not accepting connections from the selfip subnet. You have SNAT automap on the VIP.
- Dec 27, 2013Thanks John. I'm not sure what you mean by "servername.com" ? The web-server FQDN = "web-server-1.devtest.mydomain.com" , but the F5 BIG-IP VIP is just an IP with no corresponding hostname.
- Dec 27, 2013Here is curl request direct to web-server : C:\Windows\System32>curl -v -H web-server-1.devtest.mydomain.com www.mydomain.com/natural-language-url-1 |more * About to connect() to www.mydomain.com port 80 (0) * Trying 10.23.0.2... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* connected * Connected to www.mydomain.com (10.23.0.2) port 80 (0) > GET /natural-language-url-1 HTTP/1.1 > User-Agent: curl/7.27.0 > Host: www.mydomain.com > Accept: */* > < HTTP/1.1 200 OK I'm leaving the rest out because it's a few thousand lines of content ( headers, cookies, html ).
- Dec 27, 2013Here is curl request to virtual-server vip : C:\Windows\System32>curl -v -H 10.25.0.2 www.mydomain.com/natural-language-url-1 |more * About to connect() to www.mydomain.com port 80 (0) * Trying 10.25.0.2... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* connected * Connected to www.mydomain.com (10.25.0.2) port 80 (0) > GET /natural-language-url-1 HTTP/1.1 > User-Agent: curl/7.27.0 > Host: www.mydomain.com > Accept: */* > < HTTP/1.1 302 Found < Date: Fri, 27 Dec 2013 02:42:52 GMT < Server: Microsoft-IIS/6.0 < P3P: CP="CAO PSA OUR" < Etag: < X-mydomainHost: XX-XX-XX-01 < X-Powered-By: ASP.NET < PICS-Label: (PICS-1.0 "http://www.rsac.org/ratingsv01.html" l by "support@mydomain.com" on "2008.12.01T18:21-0800" exp "2035.12.31T12:00-0800" r (v 0 s 0 n 0 l 0)) < X-AspNet-Version: 4.0.30319 < Location: http://www.mydomain.com/natural-language-url-1 < Set-Cookie: lsCKE=ors=otcomqanew; domain=.mydomain.com; path=/ < Cache-Control: private < Content-Type: text/html; charset=utf-8 < Content-Length: 185 < { [data not shown] 100 185 100 185 0 0 2371 0 --:--:-- --:--:-- --:--:-- 2983 * Connection 0 to host www.mydomain.com left intact *Object moved Object moved to here. Closing connection 0
- Dec 27, 2013"It is also possible that the server is not accepting connections from the selfip subnet. You have SNAT automap on the VIP." How can I diagnose this further ? How to determine my f5 selfip ? I configured Source Address Translation = Auto Map because otherwise the response would flow through the web-server's gateway ip ( which actually is a vip on a different f5 - our internal network f5 ) whereas I want the response to flow back through my dev-test f5.
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