Skip to main content
Anas_Abu_Alrob0599
New Member
August 25, 2022
Question

Redirect subdomain to multi local servers

  • August 25, 2022
  • 4 replies
  • 4607 views

Dear Team ...

I have 2 subdomains , 2 local servers , 1 wan ip and 1 Fortigate 100E.

I need redirect sub1.domain.com to local server 1 when visited and sub2.domain.com to server 2.

I try virtual servers option but not work although i had create configurations step by step may be the problem with https redirect.Capture.JPG

1.jpg2.jpg3.jpg

 

 

any ideas please , thank you all.

4 replies

vdralio
Staff
Staff
August 25, 2022

Dear @Anas_Abu_Alrob0599 ,

 

Please check the article below:

https://docs.fortinet.com/document/fortigate/6.0.0/handbook/824987/http-host-based-load-balancing

 

Best Regards,

Vasil Dralio

 

Anas_Abu_Alrob0599
New Member
September 4, 2022

thank you for replay.

I have installed the main domain SSL certificate on FG and select it as  Certificate option in dropdown menu , when retry testing redirect me from sub1.domain.com to server 1 , sub2.domain.com to server 2 not working , I had checking HTTP HOST url and it's correct.

ede_pfau
SuperUser
SuperUser
September 4, 2022

I haven't tried this setup yet, but I would use the same port for all servers, that is, virtual server (443), realserver1 (now: 1662) and realserver2 (443).

Assuming you have 3 policies in place which allow the traffic from WAN to realserver(s).

Can you sniff the traffic, like in

diagnose sniffer packet wan1 'port 443' 4  # for virtual server

diagnose sniffer packet any 'host 160.168.201.20 and port 443' 4

and post the results here?

Anas_Abu_Alrob0599
New Member
October 1, 2022

Friends ....

 

I solved the problem by updating the firmware to v7.0.2 

 

Thank you all.

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!