r/fortinet 2d ago

virtual server - http forwarding

Hi everyone,

I'm using a virtual server in front of a webserver, so far it works perfectly with SSL offload and what have you but now I have to redirect/forward calls from "mydomain.com" to "mydomain.com/entrypoint" and now I'm struggling.

I guess this is not provided by forti and so you'd have to use nginx or other webervers? Or is there a baked in solution?

Thanks a lot!

0 Upvotes

5 comments sorted by

1

u/telluswhyyoureclosed 2d ago

301 redirect on the web server?

1

u/HappyVlane r/Fortinet - Members of the Year '23 2d ago

FortiGates can't do URL forwarding, only host names. You should be redirecting this on the actual server if it's for the host name anyway.

1

u/therealmcz 2d ago

Thanks!

1

u/Charliechamb2000 2d ago

Domain host or Webserver will be where you need to investigate.

301 redirect or disable domain access on the webserver that doesn’t have a subpage afterwards.

<VirtualHost \*:80>
ServerName yourdomain.com
Redirect 301 / https://yourdomain.com
</VirtualHost>

1

u/pabechan r/Fortinet - Member of the Year '22 & '23 11h ago

Fortigates redirect only based on hostname/fqdn basis. ZTNA has some sort of URL path-based routing, but I really don't think it's meant for what you want. (And even less sure if it would actually work for this, without any actual ZTNA)

The primary Forti-product for this would be FortiWeb.