Ibay
De SME Server Wiki
Personnalisation des ibays
Ajouter le SSL et/ou l'affichage des erreurs à une Ibay
Si un template custom n'existe pas copiez le template
cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/90e-smithAccess40ibays /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/90e-smithAccess40ibays
Ajouter :
if($properties{'SSLRequireSSL'})
{
if($properties{'SSLRequireSSL'} eq 'on')
{
$OUT.=" SSLRequireSSL\n";
}
}
if($properties{'display_errors'})
{
$OUT.=" php_flag display_errors
".$properties{'display_errors'}."\n";
}
if ($properties{'error_reporting'})
#error_reporting must be an Int, do not use the constant
{
$OUT.=" php_admin_value error_reporting
".$properties{'error_reporting'}."\n";
}
juste aprés :
$OUT .= "<Directory /home/e-smith/files/ibays/$key/html>\n";
Pour mettre le SSL obligatoire sur une ibay:
db accounts setprop MON_IBAY SSLRequireSSL on expand-template /etc/httpd/conf/httpd.conf service httpd-e-smith restart
Pour mettre l'affichage des erreurs:
| constante | valeur |
| 1 | E_ERROR |
| 2 | E_WARNING |
| 4 | E_PARSE |
| 8 | E_NOTICE |
| 16 | E_CORE_ERROR |
| 32 | E_CORE_WARNING |
| 64 | E_COMPILE_ERROR |
| 128 | E_COMPILE_WARNING |
| 256 | E_USER_ERROR |
| 512 | E_USER_WARNING |
| 1024 | E_USER_NOTICE |
| 2047 | E_ALL |
| 2048 | E_STRICT |
| 4096 | E_RECOVERABLE_ERROR |
db accounts setprop MON_IBAY display_errors true db accounts setprop MON_IBAY error_reporting 2048 expand-template /etc/httpd/conf/httpd.conf service httpd-e-smith restart
NB: utilisez bien la valeur numerique pour error_reporting, bizarement la constante n'est pas comprise.