Browse Source

Adding new log format

montee_version
Philippe Caseiro 11 months ago
parent
commit
efec4c71e5
2 changed files with 13 additions and 6 deletions
  1. 9
    6
      dicos/70_shibboleth_idp.xml
  2. 4
    0
      tmpl/apache-idp.conf

+ 9
- 6
dicos/70_shibboleth_idp.xml View File

@@ -192,15 +192,18 @@
192 192
             <variable name='apacheTimeout' type='string' description='Durée de vie des requêtes traitées par Apache (Timeout en s)'>
193 193
                    <value>300</value>
194 194
             </variable>
195
-			<variable name='enableKeepAlive' type='oui/non' description='Activer le KeepAlive (maintenir les threads en vie)'>
196
-				<value>non</value>
197
-			</variable>
195
+            <variable name='enableKeepAlive' type='oui/non' description='Activer le KeepAlive (maintenir les threads en vie)'>
196
+                <value>non</value>
197
+            </variable>
198 198
             <variable name='apacheMaxKeepAliveRequests' type='string' description='Nombre maximum de requêtes keep alive' >
199 199
                    <value>100</value>
200 200
             </variable>
201 201
             <variable name='apacheKeepAliveTimeout' type='string' description='Durée de requête keep alive'>
202 202
                    <value>15</value>
203 203
             </variable>
204
+            <variable name="apachelogXForwaredFor" type='oui/non' description="Ecrire la valeur de X-Forwared-For dans les logs ?">
205
+                <value>oui</value>
206
+            </variable>
204 207
         </family>
205 208
         <separators>
206 209
             <separator name="serviceProvider">Fournisseurs de services</separator>
@@ -232,9 +235,9 @@
232 235
             <target type='family'>Attributs de fédération</target>
233 236
         </condition>
234 237
         <group master='serviceProvider'>
235
-			<!-- <slave>spType</slave> -->
236
-			<slave>spMetadataDownload</slave>
237
-			<slave>spMetadataDisregardTLSCertificate</slave>
238
+            <!-- <slave>spType</slave> -->
239
+            <slave>spMetadataDownload</slave>
240
+            <slave>spMetadataDisregardTLSCertificate</slave>
238 241
             <slave>spMetadataFile</slave>
239 242
             <slave>spMetadataURL</slave>
240 243
         </group>

+ 4
- 0
tmpl/apache-idp.conf View File

@@ -4,3 +4,7 @@
4 4
 
5 5
 ProxyPass /idp ajp://localhost:%%ajpPort/idp retry=5
6 6
 ProxyPassReverse /idp ajp://localhost:%%ajpPort/idp retry=5
7
+
8
+%if %%getVar('apachelogXForwaredFor') == "oui"
9
+LogFormat "%{X-Forwarded-For}i [%{remote}p] %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
10
+%end if

Loading…
Cancel
Save