From: Andrew H. <and...@fi...> - 2008-04-29 03:55:25
|
When I run mantis from behind a public proxy and forward https -> http, I experience a problem similar to issue#0006134. I want to be able to have users access mantis securely from a public address https://mantis.mydomain.com and developers access mantis on the internal network at http://localserver/ To get things to work properly I simply tweaked the config_defaults_inc.php with the following $t_protocol = 'http'; if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) ) { // Support ProxyPass $t_protocol= $_SERVER['HTTP_X_FORWARDED_PROTO']; } else if ( isset( $_SERVER['HTTPS'] ) && ( strtolower( $_SERVER['HTTPS'] ) != 'off' ) ) { $t_protocol = 'https'; } This has the system working in both scenarios. I have raised an issue and submitted a patch at http://www.mantisbt.org/bugs/view.php?id=9077 Would be great if someone could review this an it could make its way into the next release. |