Et avez-vous plusieurs hosts dans la config tomcat?
By the way voici quelques rules qui fonctionnent
bien avec Jahia tournant en contexte ROOT, tout en utilisant les urlKey.
RewriteEngine on
# Disabling the HTTP TRACE method
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
# following lines aren't mount by the Jk mode
# so the pages should be served by apache
RewriteRule ^/toto(.*?)$ /toto$1 [L]
# Jahia rewrite rules
RewriteRule ^/jahia/jsp(.*?)$ http://%{SERVER_NAME}/jsp$1 [R,L,NS]
RewriteRule ^/jsp(.*?)$ /jsp$1 [L]
# stop rules on preview/compare/edit mode
RewriteRule ^(.*?)/op/edit(.*?)$ $1/op/edit$2 [L]
RewriteRule ^(.*?)/op/preview(.*?)$ $1/op/preview$2 [L]
RewriteRule ^(.*?)/op/compare(.*?)$ $1/op/compare$2 [L]
RewriteRule ^/webdav(.*?)$ /webdav$1 [L]
RewriteRule ^/administration(.*?)$ /administration$1 [L]
RewriteRule
^/Jahia/site/([a-zA-Z0-9\_]+)/pid/([0-9]+)$
http://%{SERVER_NAME}/$1/page$2.html [R,L,NS]
RewriteRule
^/Jahia/site/([a-zA-Z0-9\_]+)/lang/([a-zA-Z\_]+)/pid/([0-9]+)$
http://%{SERVER_NAME}/$1/page$3_$2.html [R,L,NS]
RewriteRule
^/Jahia/site/([a-zA-Z0-9\_]+)/lang/([a-zA-Z\_]+)/([a-zA-Z0-9\_\/]+)/pid/([0-9]+)$
http://%{SERVER_NAME}/$1/$3/page$4_$2.html [R,L,NS]
RewriteRule
^/Jahia/site/([a-zA-Z0-9\_]+)/lang/([a-zA-Z\_]+)/([a-zA-Z0-9\_\/]+)$
http://%{SERVER_NAME}/$1/$3_$2.html [R,L,NS]
RewriteRule
^/Jahia/site/([a-zA-Z0-9\_]+)/([a-zA-Z0-9\_\/]+)/pid/([0-9]+)$
http://%{SERVER_NAME}/$1/$2/page$3.html [R,L,NS]
RewriteRule
^/Jahia/site/([a-zA-Z0-9\_]+)/([a-zA-Z0-9\_\/]+)$
http://%{SERVER_NAME}/$1/$2.html [R,L,NS]
RewriteRule
^/Jahia/lang/([a-zA-Z\_]+)/pid/([0-9]+)$
http://%{SERVER_NAME}/page$2_$1.html [R,L,NS]
RewriteRule ^/Jahia(.*) - [PT,QSA,L,NS]
RewriteRule
^/page([0-9]+)_([a-zA-Z\_]+).html$
/Jahia/lang/op/normal/$2/pid/$1 [PT,QSA,L,NS]
RewriteRule ^/page([0-9]+).html$ /Jahia/op/normal/pid/$1 [PT,QSA,L,NS]
RewriteRule
^/(.*?)/page([0-9]+)_([a-zA-Z\_]+).html$
/Jahia//$1/lang/$3/pid/$2 [PT,QSA,L,NS]
RewriteRule ^/(.*?)/page([0-9]+).html$ /Jahia/$1/pid/$2 [PT,QSA,L,NS]
RewriteRule
^/([a-zA-Z0-9\_]+)/(.*?)_([a-zA-Z]+).html$
/Jahia/site/$1/lang/$3/$2 [PT,QSA,L,NS]
RewriteRule ^/([a-zA-Z0-9\_]+)/(.*?).html$ /Jahia/site/$1/$2 [PT,QSA,L,NS]
RewriteRule ^/$ /Jahia/site/site1 [PT,QSA,L,NS]
RewriteRule ^/([a-zA-Z0-9\_]+)$ /Jahia/site/$1 [PT,QSA,L,NS]
RewriteRule ^/([a-zA-Z0-9\_]+)/$ /Jahia/site/$1 [PT,QSA,L,NS]
At 14.02.2008 11:23, you wrote:
>mod_jk pour apache2
>
>
>On Thu, 14 Feb 2008 11:19:33 +0100
>Philippe Vollenweider <[EMAIL PROTECTED]> wrote:
>
> > Quel connecteur utilisez-vous entre apache et tomcat?
> >
> > At 14.02.2008 11:05, you wrote:
> >
> > >Dans le (jahia)/tomcat/jahia.log ; je trouve au lancement de jahia =>
> > >2008-02-14 10:53:15,266: ERROR [main] Log4jLogger,
> > >org.apache.slide.common.Domain: Domain initialization error
> > >
> > >CQFD? comment regler ce problème ? as t il un impact sur le rewriting ?
> > >Ce n'est pas impossible puisque c'est bien
> > >Tomcat qui me retourne un 404 (et non Apache) !
> > >
> > >Une aide de jahia-team ;) ... j'ai une
> > >présentation dans les heures qui suivent, et
> > >dommage de ne pas montrer le bébé final avec les urls qu'ils veulent :(
> > >
> > >Cordialement,
> > >fabrice
> > >
> > >On Wed, 13 Feb 2008 23:40:59 +0100
> > >fpl <[EMAIL PROTECTED]> wrote:
> > >
> > > > Rectification de la 3eme ligne.
> > > > RewriteRule ^/jahia/Jahia/site/polytech(.*) -
> > > [PT,QSA,L,NS] <= RewriteRule ^/jahia/Jahia(.*) - [PT,QSA,L,NS]
> > > >
> > > > Mais je confirme que cela ne fonctionne
> > > toujours pas. Je ne suis pas vraiment
> familier du rewrite, mais j'ai vu que :
> > > >
> > > > 1/ les liens sont correctement réécrits, mais
> > > le serveur Tomcat me retourne une erreur 404.
> > > > http://domaine/jahia/page1.html
> > > >
> > > > 2/ si j'ajoute manuellement "/Jahia" dans l'url, la page est ok.
> > > >
> > > > Quid?
> > > >
> > > >
> > > > On Wed, 13 Feb 2008 13:56:21 +0100
> > > > fpl <[EMAIL PROTECTED]> wrote:
> > > >
> > > > > Bonjour,
> > > > >
> > > > > Quelque chose m'échappe concernant ma conf
> > > pour le rewriting. Conf qui fonctionnait
> > > parfaitement sur le serveur précédent, a priori son clone.
> > > > > J'ai repris celle => http://www.jahia.org/jahia/page652.html
> > > > >
> > > > > et juste modifié /jahia/Jahia/pid =>
> > > /jahia/Jahia/site/polytech/pid ; conf qui
> > > fonctionnait bien sur le précedent serveur.
> > > > >
> > > > > #RewriteRule
> > > ^/jahia/Jahia/lang/([a-zA-Z0-9\_]+)/pid/([0-9]+)
> > > $ http://%{SERVER_NAME}/jahia/page$2_$1.html [R,L,NS]
> > > > > RewriteRule
> > > ^/jahia/Jahia/site/polytech/pid/([0-9]+)$
> > > http://%{SERVER_NAME}/jahia/page$1.html [R,L,NS]
> > > > > RewriteRule ^/jahia/Jahia/site/polytech(.*) - [PT,QSA,L,NS]
> > > > > #RewriteRule
> > > ^/jahia/page([0-9]+)_([a-zA-Z0-9\_]+).html$
> > > /jahia/Jahia/lang/$2/pid/$1 [PT,QSA,L,NS]
> > > > > RewriteRule ^/jahia/page([0-9]+).html$
> > > /jahia/Jahia/site/polytech/pid/$1 [PT,QSA,L,NS]
> > > > >
> > > > > MAIS, cela ne fonctionne plus et j'ai
> une erreur 404 du serveur Tomcat.
> > > > >
> > > > > Une idée?
> > >
> > >--
> > >] Fabrice Lebas (Peuch)
> > >] Polytech'Nice-Sophia
> > >] Universite de Nice Sophia-Antipolis - F
> > >] gpg Key ID: 0x98995CF2
> > >_______________________________________________
> > >french_list mailing list
> > >[email protected]
> > >http://lists.jahia.org/cgi-bin/mailman/listinfo/french_list
> >
> > _______________________________________________
> > french_list mailing list
> > [email protected]
> > http://lists.jahia.org/cgi-bin/mailman/listinfo/french_list
>
>
>--
>] Fabrice Lebas (Peuch)
>] Polytech'Nice-Sophia
>] Universite de Nice Sophia-Antipolis - F
>] gpg Key ID: 0x98995CF2
>_______________________________________________
>french_list mailing list
>[email protected]
>http://lists.jahia.org/cgi-bin/mailman/listinfo/french_list
_______________________________________________
french_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/french_list