Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Pavel
New Contributor

HTTP to HTTPS redirect

Good day to everyone! I faced a real problem with publishing sites with my Fortigate 100D. I have a web-server that published with http port 80. I need to redirect all http trafic to https. We are migrating from Forefront TMG and there I could do this by adding aditional listener on the 443 port and redirecting whole traffic to it. Can I do this with Fortigate 100D? Well actually there is no problem with publishing 80 port by VIPs but I have no idea how to redirect it.. I' ve tried everything but it doesn' t works... Please, help me!
1 Solution
DW_FTNT
Staff
Staff

HTTP to HTTPS redirect was added to 6.2.1 Code   you can terminate 443 on the fortigate or just pass 443 all the way to the server. This link shows how to terminate/offload 443 on the fortigate https://docs.fortinet.com/document/fortigate/6.2.0/cookbook/304594/http-to-https-redirect-for-load-b... here is a link to offloading https://help.fortinet.com/fos50hlp/54/Content/FortiOS/fortigate-load-balancing-52/ldb-ssl-tls-offloa...     if you want to just pass 443 to the server and not terminate the session on the fortigate

edit the vip

"virtual-server-https" --->  set server-type tcp  

we can  redirect other ports like 8080 

using http

edit "virtual-server-http"    

set extport 80

to   

set extport 8080    

be sure to use proxy mode

View solution in original post

10 REPLIES 10
pkley
New Contributor

I tried with the help of tech support to accomplish this and couldn't get it to work. I'm not doing load balancing, just redirect. DW_FTNT can you explain further? The guide suggests setting to http not TCP. Further I don't understand the rest of your post.

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors