OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: spooner.arthur on April 22, 2026, 05:03:23 PM

Title: Caddy redirect custom URL to Sharepoint Online URL
Post by: spooner.arthur on April 22, 2026, 05:03:23 PM
Hello,
I want to use the Caddy Plugin on the OPNsense to redirect a custom URL to SharePoint Online URL.
A CNAME doesn't work for Sharepoint, I need a htaccess Redirection 301
For example intranet.domain-name.de to https://domainnamede.sharepoint.com
It doesn't work, no matter what settings I try.
Reverse Proxy or Redir.

For Internal-Service it works.
for Excample https://salesapp.domain-name.de to http://192.168.12.33:80

Do you have any advice for me?

Best Regards
Arthur
Title: Re: Caddy redirect custom URL to Sharepoint Online URL
Post by: viragomann on April 22, 2026, 11:40:11 PM
Did you try to set the host header to "domainnamede.sharepoint.com" in reverse-proxy mode?
Not sure if Caddy does this automatically now.