Reverse proxy

De SME Server Wiki
Révision de 16 mai 2012 à 22:24 par WikiSysop (discussion | contributions) (Page créée avec « voici comment configurer complétement un reverse proxy avec authentification a partir d'une base de donnée mysql. ==installation des modules apache== == configuration d... »)

(diff) ← Version précédente | Voir la version courante (diff) | Version suivante → (diff)

voici comment configurer complétement un reverse proxy avec authentification a partir d'une base de donnée mysql.


installation des modules apache

configuration des templates

petites modifications pour le charset

il se peut qu'en forçant le charset a iso-8859-1 votre manager ne soit plus affiché correctement. Il y a en effet un oubli de déclaration du charset dans deux templates, ce qui transforme ce petit monde en hyeroglyphes.

un template a modifier

ce template permet d'avoir la page central correctement

mkdir --parents /etc/e-smith/templates-custom/etc/e-smith/web/common/head.tmpl
touch 21Charset
echo '<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">' >21Charset

un script a modifier

bien qu'il ne soit as conseillé de modifier un script géré par un paquet ( perte en cas de mise a jour) voici comment avoir votre menu visible sans souci

cd /usr/lib/perl5/site_perl/esmith
cp cgi.pm cgi.pm.old
vi cgi.pm

cherchez les lignes :

   # the -CLASS thing gets sent as a body class, not in the header
   print $q->start_html (-TITLE        => 'Mitel Networks server manager',
                         -AUTHOR       => 'bugs@e-smith.com',
                         -META         => {'copyright' => 'Copyright 1999-2005 Mitel Networks Corporation'},
                         -SCRIPT       => "$script",
                         -CLASS        => "$bodyStyle",
                         -STYLE        => {
                               -code => '@import url("/server-common/css/'.$cssFile.'");',
                               -src => '/server-common/css/sme_core.css'
                               });

modifiez en ( ajoutez la ligne -HEAD):

   # the -CLASS thing gets sent as a body class, not in the header
   print $q->start_html (-TITLE        => 'Mitel Networks server manager',
                         -AUTHOR       => 'bugs@e-smith.com',
                         -META         => {'copyright' => 'Copyright 1999-2005 Mitel Networks Corporation'},
                         -HEAD         => '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">',
                         -SCRIPT       => "$script",
                         -CLASS        => "$bodyStyle",
                         -STYLE        => {
                               -code => '@import url("/server-common/css/'.$cssFile.'");',
                               -src => '/server-common/css/sme_core.css'
                               });

sauvegardez vos changements et voila;