Skip to main content
Hossam
New Member
September 15, 2020
Question

http Redirct to https

  • September 15, 2020
  • 1 reply
  • 2938 views

Hi all

 

i need to create a policy to redirect all HTTP sessions to HTTPS and make every step come on the article https://docs.fortinet.com/document/fortigate/6.2.4/cookbook/304594/http-to-https-redirect-for-load-balancing

 

but when i type the command *** set dstaddr "virtual-server-http" "virtual-server-https"***

i had this error

 

entry not found in datasource

value parse error before 'virtual-server-http'

Command fail. Return code -3

 

i have Fortigate 81E with v6.2.4 build1112 (GA) firmware

 

any ideas please

    1 reply

    JoelLberlin
    New Member
    October 18, 2020

    Hossam wrote:

    Hi all

     

    i need to create a policy to redirect all HTTP sessions to HTTPS and make every step come on the article.  https://docs.fortinet.com/document/fortigate/6.2.4/cookbook/304594/http-to-https-redirect-for-load-balancing

     

    but when i type the command *** set dstaddr. "virtual-server-http" "virtual-server-https"***

    i had this error

     

    entry not found in datasource

    value parse error before 'virtual-server-http'

    Command fail. Return code -3

     

    i have Fortigate 81E with v6.2.4 build1112 (GA) firmware

     

    any ideas please

    You are trying to access the file whose dns connected with https but it's opening with http. so there side must be have secure layer first then you can access it and their data source also.