Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.
Commentaire: Migrated to Confluence 5.3

...

On trouve, dans le fichier $CATALINA_BASE/conf/web.xml, une directive permettant de définir l'encodage des fichiers :

Bloc de code
diff
diff
title$CATALINA_BASE/conf/web.xmldiff
diff --git a/web.xml b/web.xml
index c2f2b6b..4d4e7db 100644
--- a/web.xml
+++ b/web.xml
@@ -104,6 +104,10 @@
             <param-value>false</param-value>
         </init-param>
         <load-on-startup>1</load-on-startup>
+        <init-param>
+            <param-name>fileEncoding</param-name>
+            <param-value>ISO-8859-1</param-value>
+        </init-param>
     </servlet>

...

Paramètres pour la production

Bloc de code
diff
diff
title$CATALINA_BASE/conf/web.xmldiff
diff --git a/web.xml b/web.xml
index c2f2b6b..4d4e7db 100644
--- a/web.xml
+++ b/web.xml
@@ -259,6 +263,18 @@
             <param-name>xpoweredBy</param-name>
             <param-value>false</param-value>
         </init-param>
+        <init-param>
+            <param-name>development</param-name>
+            <param-value>false</param-value>
+        </init-param>
+        <init-param>
+            <param-name>trimSpaces</param-name>
+            <param-value>true</param-value>
+        </init-param>
+        <init-param>
+            <param-name>genStrAsCharArray</param-name>
+            <param-value>true</param-value>
+        </init-param>
         <load-on-startup>3</load-on-startup>
     </servlet>
 

...

Réf : http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#Digested_Passwords

Bloc de code
xml
xml
titleÀ ajouter à _$CATALINA_BASE/conf/server.xml_xml
      <!-- This Realm uses the UserDatabase configured in the global JNDI
           resources under the key "UserDatabase".  Any edits
           that are performed against this UserDatabase are immediately
           available for use by the Realm.  -->
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"
+            digest="SHA"
       />

Ne plus faire de résolution dns inverse pour la prod

Bloc de code
diff
diff
title$CATALINA_BASE/conf/server.xmldiff
diff --git a/server.xml b/server.xml
index 30673f6..b7a3e04 100644
--- a/server.xml
+++ b/server.xml
@@ -67,7 +67,8 @@
          Define a non-SSL HTTP/1.1 Connector on port 8080
     -->
     <Connector port="8080" protocol="HTTP/1.1" 
-               connectionTimeout="20000" 
+               connectionTimeout="20000"
+               enableLookups="false"
                redirectPort="8443" />
     <!-- A "Connector" using the shared thread pool-->
     <!--
@@ -87,7 +88,9 @@
     -->
 
     <!-- Define an AJP 1.3 Connector on port 8009 -->
-    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
+    <Connector port="8009" protocol="AJP/1.3"
+               enableLookups="false"
+               redirectPort="8443"/>