Forum Discussion
Anuj_Chaudhary_
Nimbostratus
Jul 26, 2017Not to able to open URL with host name but working fine with IP
Not to able to open URL with host name but working fine with IP
Pls suggest.
DNS entry already done and all parameters are already checked..
Sep 14, 2006
I'll have to look into building a native ASP.Net version of this sample for windows users out there. I'm not too sure about configuring apache under windows and how it handles permissions and user environments. If it works from the command line but not from within the browser, then this smells of an user/environment issue with the user context of the cgi.
Have you tried escalating the user privileges for your web apps user context?
All of this is assuming you have the LWP module installed correctly (which I assume you do as you can run it from the command line).
-Joe
- Dario_GarridoAug 18, 2020
Noctilucent
Hello Gajji.
Try this.
if { [HTTP::uri] eq "https://f5.com/uri1/uri2/uri3" } { HTTP::redirect "https://f5.com/urixyz" }
Regards,
Dario.
You mean to configure this way????
when HTTP_REQUEST {
if { ([HTTP::host] equals "f5.com") and ([HTTP::uri] eq "/uri1/uri2/uri3") } {
HTTP::redirect https://f5.com/ruixyz
- Dario_GarridoAug 18, 2020
Noctilucent
Actually it depends how your queries are conformed.
Let me explain it better.
[HTTP::uri] is equivalent to the second field in query method.
These are two examples of valid queries.
- GET /uri1/uri2/uri3 HTTP/1.1
- GET https://f5.com/uri1/uri2/uri3 HTTP/1.1
So, to match both cases, you could consider using this iRule:
if { [HTTP::path] starts_with "/uri1/uri2/uri3" } { HTTP::redirect "https://f5.com/urixyz" }
Regards,
Dario.
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