Skip to main content
Bisingen
New Member
May 15, 2019
Question

sort incoming FQDN

  • May 15, 2019
  • 1 reply
  • 3308 views

I have a FG100E with two active, different WAN ports. On one should come several requests from the Internet: - [link]https://cert.xxx.de[/link] - [link]https://md.xxx.de[/link] - [link]https://abc.xxx.de[/link] All logically have port 443. Question: Is there a way to send the request to the right server when the FQDN arrives?

1 reply

rwpatterson
New Member
May 15, 2019

Welcome to the forums.

 

That is beyond the capabilities of the Fortigate units. You would best achieve this on the web servers themselves. You could set up Apache (if that is what you are using) to move incoming traffic to the correct server based on the incoming destination. For example:

 

# Directory directives for other directories

# cert.xxxx.de
<VirtualHost *:443>
    ServerName    Server.fqdn.com
    ServerAlias    cert.xxxx.de
    redirect /    http://real_cert.xxxx.server.fqdn.de:443/
</VirtualHost>

# md.xxxx.de
<VirtualHost *:443>
    ServerName    Server.fqdn.com
    ServerAlias    md.xxxx.de
    redirect /    http://real_md.xxxx.server.fqdn.de:443/
</VirtualHost>

# abc.xxxx.de
<VirtualHost *:443>
    ServerName    Server.fqdn.com
    ServerAlias    abc.xxxx.de
    redirect /    http://real_abc.xxxx.server.fqdn.de:443/
</VirtualHost>
ede_pfau
SuperUser
SuperUser
May 16, 2019

This is a 100% typical request for the FortiADC (application delivery controller). It will route according to host or URI to different physical servers. From experience, runs very smooth and stable, and is not expensive.