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

Redirect subdomain to multi local servers

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 4
vdralio
Staff
Staff

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 Contributor

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
Esteemed Contributor III

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?


Ede

"Kernel panic: Aiee, killing interrupt handler!"
Anas_Abu_Alrob0599
New Contributor

Friends ....

 

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

 

Thank you all.