Install PrivacyIDEA in a sub location aka domain.com/privacyidea/ reverse proxy


#1

I would like to use PrivacyIDEA on a domain that I already use, but has nginx installed.

Aka instead of installing PI in
https://domain.com/

I would like to have it in:
https://domain.com/privacyidea

Unfortunately the PI UI parts all point to / so just reverse proxying it, does not work.

How can I set the privacyIdea site url in the configuration so I can reverse proxy


#2

This should not be correct. The UI recognizes if it is called from a subpath - At least with Apache2 and mod_wsgi: https://privacyidea.readthedocs.io/en/latest/installation/system/wsgiscript.html

I am not sure if it will work the same with NginX and uwsgi. I am afraid, that uwsgi does not recognize which subpath in NginX was called. So if this is true, it would indeed not work with NGinX.


#3

Okay, I was using an nginx http proxy. I will move it over to apache and wsgi then.

Thanks for pointing out the correct docs.