30,997
edits
Tag: 2017 source edit |
Tag: 2017 source edit |
||
| Line 30: | Line 30: | ||
*Forçage du mode HTTPS <sup>[*9]</sup>. | *Forçage du mode HTTPS <sup>[*9]</sup>. | ||
<syntaxhighlight lang="PHP"> | |||
//conf/conf.php file | |||
//example of $dolibarr_main_force_https configuration | |||
$dolibarr_main_force_https = '1';//to force https | |||
</syntaxhighlight> | |||
{| class="wikitable" style="width:100%;" | |||
! scope="col" |Values | |||
! scope="col" |Description | |||
|- | |||
| style="width:50%;" | | |||
0 | |||
| style="width:50%;" | | |||
No forced redirect | |||
|- | |||
| style="width:50%;" | | |||
1 | |||
| style="width:50%;" | | |||
Force redirect to https, until SCRIPT_URI start with https into response | |||
|- | |||
| style="width:50%;" | | |||
2 | |||
| style="width:50%;" | | |||
Force redirect to https, until SERVER["HTTPS"] is 'on' into response | |||
|- | |||
| style="width:50%;" | | |||
https://mydomain | |||
| style="width:50%;" | | |||
Force redirect to the https domain name mydomain (recommended method) | |||
|} | |||
'''Hacks et cracks''' | '''Hacks et cracks''' | ||