# Need help configuring SAML behind Nginx reverse-proxy

**URL:** <https://forum.mautic.org/t/need-help-configuring-saml-behind-nginx-reverse-proxy/25690>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [October 14, 2022, 12:48pm UTC](https://forum.mautic.org/t/need-help-configuring-saml-behind-nginx-reverse-proxy/25690 "2022-10-14T12:48:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![somepad](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/somepad/32/6472_2.png) [@somepad](https://forum.mautic.org/u/somepad)\
**Post date:** [October 14, 2022, 12:48pm UTC](https://forum.mautic.org/t/need-help-configuring-saml-behind-nginx-reverse-proxy/25690/1 "2022-10-14T12:48:03Z")

</div>

**Your software**  
My Mautic version is: 4.4.3  
My PHP version is: 8.0  
My Database type and version is: mysql 8.0

Current setup uses nginx + php-fmp to serve Mautic, nginx config is based on this gist: [Mautic Nginx Configuration · GitHub](https://gist.github.com/proffalken/ebfa9debc4eef929b0163d11a80af349)

The problem in all SAML-related paths (/saml/metadata.xml, /s/saml/login) are being redirected to main entry point /s/dashboard or /s/login in case anonymous access.

Could anyone please help crafting proper nginx config to support SAML?

Thanks!

---

<div class="post-metadata">

**Author:** ![tornmarketing](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tornmarketing/32/11603_2.png) [@tornmarketing](https://forum.mautic.org/u/tornmarketing)\
**Post date:** [April 22, 2023, 4:38am UTC](https://forum.mautic.org/t/need-help-configuring-saml-behind-nginx-reverse-proxy/25690/2 "2023-04-22T04:38:17Z")

</div>

Hey mate

Did you resolve this issue?  
Running cloudpanel on nginx and hitting the same issue
