Philippe Roth a �crit :
Dear All,
First, thank you all for the answers you sent to my questions. Everything is not set for the moment and maybe I will continue my last questions...
But now, I have a configuration problem. I would like to make OTRS accessible under https (it's under Linux)... I did certificates and if I type https://otrsservername, I can connect and all is under https (certificate). But if I type http://otrsservername, I can also connect, but without certificate. How could I make a redirection when I type http to https? Is it under httpd or under OTRS? Which file(s)
Many thanks in advance and have a nice day, Philippe Roth, Switzerland
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting f�r Ihr OTRS System? =http://www.otrs.de/
Hi,
I think this is because you have enable http access for this vhost in the apache conf.
If you need to redirect:
- Use mod-rewrite
or
- create a php file such as index.html in the http vhost root with
redirect:
----- BEGIN OF FILE -----
<?
if ( !(isset($_SERVER["HTTPS"])) || (strtolower($_SERVER["HTTPS"]) != "on") ) {
// This is not an https connection
$REDIRECT_TO = "https://" . $_SERVER["SERVER_NAME"] . $_SERVER['REQUEST_URI'];
header("Location: $REDIRECT_TO");
} ?> You are redirected to: <a href="<?=$REDIRECT_TO?>"><?=$REDIRECT_TO?></a> <br>If this doesn't work clic on the link. ----- EOF -----
Regards,
Yann Richard.
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting f�r Ihr OTRS System? => http://www.otrs.de/
