Forum Discussion
3 Replies
Sort By
- acgutierrez_123NimbostratusThere a VS listening to port 80 that catches all HTTP requests and sends them to different pools depending on the URI. I tried creating a VS listening to port 8691 (where the client has the HTTPS service) and apply the redirect iRule but as I said, it redirects to HTTPS but not to the site I want, for example: the website it should redirect to is https://www.example.com:8691/inscripcion/ and it redirects to https://www.example.com/inscripcion/.
You would want something like this on the port 80 vip,or whichever one is the one that will issue the redirect. Should be as simple as copying the system irule and making the edit.
HTTP::redirect https://[getfield [HTTP::host] ":" 1]:8691[HTTP::uri]
- Kevin_Davies_40Nacreous
I suggest you add a HTTP Class to the virtual that looks for inscripcion in the URL and redirects you to https://[HTTP::host]:8691[HTTP::uri]
No iRule is required if you do this.