Bonjour à tous,
J'ai mis en place un reverse proxy devant mon serveur Mantis pour ajouter entre autre la couche SSL.
Le soucis est que Mantis inscris en dur les url et donc laisse en HTTP.
Exemple du code source de ma page d'accueil :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://172.18.40.26/mantis/css/default.css" />
<script type="text/javascript"><!--
if(document.layers) {document.write("<style>td{padding:0px;}<\/style>")}
// --></script>
Est il possible de forcer le SSL ? ou tout simplement de supprimer le début de l'url (laisser /mantis/css/default.css) ?
Merci de vos retour.
[RESOLU] Problème redirection url
Moderators: Developer, Contributor
[RESOLU] Problème redirection url
Last edited by Lapinkiller on 24 Apr 2014, 07:33, edited 1 time in total.
Reason: tag RESOLU ajouté/added
Reason: tag RESOLU ajouté/added
-
- Posts: 408
- Joined: 28 Jan 2011, 18:47
- Location: France
- Contact:
Re: Problème redirection url
Bonjour,
Tente en renseignant le paramètre $g_path dans config_inc.php
par exemple :
$g_path = "https://172.18.40.26/mantis/";
ou
$g_path = "";
Tente en renseignant le paramètre $g_path dans config_inc.php
par exemple :
$g_path = "https://172.18.40.26/mantis/";
ou
$g_path = "";
Lapinkiller,
French PHP developer
New look for your mantis : http://www.mantisbt.org/forums/viewtopi ... =4&t=20055
French PHP developer
New look for your mantis : http://www.mantisbt.org/forums/viewtopi ... =4&t=20055
Re: Problème redirection url
J'ai résolu mon problème en forçant tout le trafic en 443 dans le fichier config_defaults_inc.php.
$t_protocol = 'http'; ----> $t_protocol = 'https';
$t_protocol = 'http'; ----> $t_protocol = 'https';
-
- Posts: 408
- Joined: 28 Jan 2011, 18:47
- Location: France
- Contact:
Re: Problème redirection url
il ne faut pas modifier le fichier config_defaults_inc.php
Surcharge sa valeur en mettant la ligne $t_protocol = 'https'; dans le fichier config_inc.php
Surcharge sa valeur en mettant la ligne $t_protocol = 'https'; dans le fichier config_inc.php
Lapinkiller,
French PHP developer
New look for your mantis : http://www.mantisbt.org/forums/viewtopi ... =4&t=20055
French PHP developer
New look for your mantis : http://www.mantisbt.org/forums/viewtopi ... =4&t=20055