Our company is using SSL offload - handled by Netscalers - with Apache web servers running non-ssl http behind them. Our dokuwiki is then accessed by https://a.b.c.d/dokuwiki
, where a.b.c.d is a public internet address.
I found that dokuwiki isn't compatible with such a setup, because the function getBaseURL (file: inc/init.php), which returns a path containing protocol, uses function is_ssl(), which checks the SERVER['HTTPS'] environment variable. Login, Logout and Page Edit are the affected functionalities, which will redirect to http://a.b.c.d/dokuwiki/
... instead of using https.
This is because the SERVER['HTTPS'] variable is not set in case of SSL offloading. But protocol should be https nevertheless - from the external user point of view.
I found that replacing the line (in inc/init.php):
fixed my issue.
Hope this helps.