Forum Discussion

Melissa_Good_10's avatar
Melissa_Good_10
Icon for Nimbostratus rankNimbostratus
Oct 13, 2006

Help for a newbie

Hello. I am very new to the BigIP, and faced with having to solve a problem for an active website.

 

 

Here is the issue. The website has secure pages, which are kept in a specific directory. I have written an iRule to redirect those pages to HTTPS, and that is working fine. However, the pages have images on them being called from a directory outside the /secure one, and they cause 'you are being redirected to a non secure page' pop up boxes for those with heightened browser security. Is there a way around this?

 

 

Second option - our web designers put up a test set that has all the files, including the images, in a secure directory, or being redirected. The same iRule being used for option one does a strange thing - http pages are fine, but when attempting to go to secure pages, the website issues a 'bad gateway' error and the request times out.

 

 

The iRule in use is - (There are two VIPs, one for 80, one for 443)

 

 

when HTTP_REQUEST {

 

if { [HTTP::uri] contains "/secure" } {

 

HTTP::redirect https://[HTTP::host][HTTP::uri]

 

}

 

else {

 

pool NCL-com-test-pool1

 

}

 

}

 

 

and the return iRUle in use applied to the 443 vip is -

 

when HTTP_REQUEST {

 

if { [HTTP::uri] contains "/secure" } {

 

pool NCL.com_443_pool1

 

}

 

else {

 

HTTP::redirect http://[HTTP::host][HTTP::uri]

 

}

 

}

 

 

Can anyone assist? I have seen lots of great suggestions here but I am afraid we're trying to do something silly.

 

 

M

 

No RepliesBe the first to reply