Commit b92bedd6 authored by Xavier Guimard's avatar Xavier Guimard

Explain how to get userid in apache logs (#595)

parent 2a3d3d73
...@@ -5,12 +5,17 @@ ...@@ -5,12 +5,17 @@
# Uncomment this if no previous NameVirtualHost declaration # Uncomment this if no previous NameVirtualHost declaration
#NameVirtualHost __VHOSTLISTEN__ #NameVirtualHost __VHOSTLISTEN__
# To insert LLNG user id in Apache logs, declare this format and use it in
# CustomLog directive
#LogFormat "%v:%p %h %l %{Lm-Remote-User}o %t \"%r\" %>s %O" llng
# Manager virtual host (manager.__DNSDOMAIN__) # Manager virtual host (manager.__DNSDOMAIN__)
<VirtualHost __VHOSTLISTEN__> <VirtualHost __VHOSTLISTEN__>
ServerName manager.__DNSDOMAIN__ ServerName manager.__DNSDOMAIN__
LogLevel notice LogLevel notice
# See above to set LLNG user id in Apache logs
#CustomLog ${APACHE_LOG_DIR}/manager.log combined
#ErrorLog ${APACHE_LOG_DIR}/lm_err.log #ErrorLog ${APACHE_LOG_DIR}/lm_err.log
#CustomLog ${APACHE_LOG_DIR}/lm.log combined
# FASTCGI CONFIGURATION # FASTCGI CONFIGURATION
# --------------------- # ---------------------
...@@ -37,6 +42,7 @@ ...@@ -37,6 +42,7 @@
<Files *.fcgi> <Files *.fcgi>
SetHandler fcgid-script SetHandler fcgid-script
Options +ExecCGI Options +ExecCGI
header unset Lm-Remote-User
</Files> </Files>
# If you want to use mod_fastcgi, replace lines below by: # If you want to use mod_fastcgi, replace lines below by:
......
...@@ -5,12 +5,17 @@ ...@@ -5,12 +5,17 @@
# Uncomment this if no previous NameVirtualHost declaration # Uncomment this if no previous NameVirtualHost declaration
#NameVirtualHost __VHOSTLISTEN__ #NameVirtualHost __VHOSTLISTEN__
# To insert LLNG user id in Apache logs, declare this format and use it in
# CustomLog directive
#LogFormat "%v:%p %h %l %{Lm-Remote-User}o %t \"%r\" %>s %O" llng
# Manager virtual host (manager.__DNSDOMAIN__) # Manager virtual host (manager.__DNSDOMAIN__)
<VirtualHost __VHOSTLISTEN__> <VirtualHost __VHOSTLISTEN__>
ServerName manager.__DNSDOMAIN__ ServerName manager.__DNSDOMAIN__
LogLevel notice LogLevel notice
# See above to set LLNG user id in Apache logs
#CustomLog ${APACHE_LOG_DIR}/manager.log combined
#ErrorLog ${APACHE_LOG_DIR}/lm_err.log #ErrorLog ${APACHE_LOG_DIR}/lm_err.log
#CustomLog ${APACHE_LOG_DIR}/lm.log combined
# FASTCGI CONFIGURATION # FASTCGI CONFIGURATION
# --------------------- # ---------------------
...@@ -37,6 +42,7 @@ ...@@ -37,6 +42,7 @@
<Files *.fcgi> <Files *.fcgi>
SetHandler fcgid-script SetHandler fcgid-script
Options +ExecCGI Options +ExecCGI
header unset Lm-Remote-User
</Files> </Files>
# If you want to use mod_fastcgi, replace lines below by: # If you want to use mod_fastcgi, replace lines below by:
......
...@@ -5,12 +5,17 @@ ...@@ -5,12 +5,17 @@
# Uncomment this if no previous NameVirtualHost declaration # Uncomment this if no previous NameVirtualHost declaration
#NameVirtualHost __VHOSTLISTEN__ #NameVirtualHost __VHOSTLISTEN__
# To insert LLNG user id in Apache logs, declare this format and use it in
# CustomLog directive
#LogFormat "%v:%p %h %l %{Lm-Remote-User}o %t \"%r\" %>s %O" llng
# Manager virtual host (manager.__DNSDOMAIN__) # Manager virtual host (manager.__DNSDOMAIN__)
<VirtualHost __VHOSTLISTEN__> <VirtualHost __VHOSTLISTEN__>
ServerName manager.__DNSDOMAIN__ ServerName manager.__DNSDOMAIN__
LogLevel notice LogLevel notice
# See above to set LLNG user id in Apache logs
#CustomLog ${APACHE_LOG_DIR}/manager.log combined
#ErrorLog ${APACHE_LOG_DIR}/lm_err.log #ErrorLog ${APACHE_LOG_DIR}/lm_err.log
#CustomLog ${APACHE_LOG_DIR}/lm.log combined
# FASTCGI CONFIGURATION # FASTCGI CONFIGURATION
# --------------------- # ---------------------
...@@ -37,6 +42,7 @@ ...@@ -37,6 +42,7 @@
<Files *.fcgi> <Files *.fcgi>
SetHandler fcgid-script SetHandler fcgid-script
Options +ExecCGI Options +ExecCGI
header unset Lm-Remote-User
</Files> </Files>
# If you want to use mod_fastcgi, replace lines below by: # If you want to use mod_fastcgi, replace lines below by:
......
...@@ -5,9 +5,15 @@ ...@@ -5,9 +5,15 @@
# Uncomment this if no previous NameVirtualHost declaration # Uncomment this if no previous NameVirtualHost declaration
#NameVirtualHost __VHOSTLISTEN__ #NameVirtualHost __VHOSTLISTEN__
# To insert LLNG user id in Apache logs, declare this format and use it in
# CustomLog directive
#LogFormat "%v:%p %h %l %{Lm-Remote-User}o %t \"%r\" %>s %O" llng
# Portal Virtual Host (auth.__DNSDOMAIN__) # Portal Virtual Host (auth.__DNSDOMAIN__)
<VirtualHost __VHOSTLISTEN__> <VirtualHost __VHOSTLISTEN__>
ServerName auth.__DNSDOMAIN__ ServerName auth.__DNSDOMAIN__
# See above to set LLNG user id in Apache logs
#CustomLog /var/log/apache2/portal.log llng
# DocumentRoot (FCGI scripts) # DocumentRoot (FCGI scripts)
DocumentRoot __PORTALSITEDIR__ DocumentRoot __PORTALSITEDIR__
...@@ -28,6 +34,7 @@ ...@@ -28,6 +34,7 @@
SetHandler fcgid-script SetHandler fcgid-script
#CGIPassAuth on #CGIPassAuth on
Options +ExecCGI Options +ExecCGI
header unset Lm-Remote-User
</Files> </Files>
# Static files # Static files
......
...@@ -5,9 +5,15 @@ ...@@ -5,9 +5,15 @@
# Uncomment this if no previous NameVirtualHost declaration # Uncomment this if no previous NameVirtualHost declaration
#NameVirtualHost __VHOSTLISTEN__ #NameVirtualHost __VHOSTLISTEN__
# To insert LLNG user id in Apache logs, declare this format and use it in
# CustomLog directive
#LogFormat "%v:%p %h %l %{Lm-Remote-User}o %t \"%r\" %>s %O" llng
# Portal Virtual Host (auth.__DNSDOMAIN__) # Portal Virtual Host (auth.__DNSDOMAIN__)
<VirtualHost __VHOSTLISTEN__> <VirtualHost __VHOSTLISTEN__>
ServerName auth.__DNSDOMAIN__ ServerName auth.__DNSDOMAIN__
# See above to set LLNG user id in Apache logs
#CustomLog /var/log/apache2/portal.log llng
# DocumentRoot (FCGI scripts) # DocumentRoot (FCGI scripts)
DocumentRoot __PORTALSITEDIR__ DocumentRoot __PORTALSITEDIR__
...@@ -34,6 +40,7 @@ ...@@ -34,6 +40,7 @@
SetHandler fcgid-script SetHandler fcgid-script
#CGIPassAuth on #CGIPassAuth on
Options +ExecCGI Options +ExecCGI
header unset Lm-Remote-User
</Files> </Files>
# Static files # Static files
......
...@@ -5,9 +5,15 @@ ...@@ -5,9 +5,15 @@
# Uncomment this if no previous NameVirtualHost declaration # Uncomment this if no previous NameVirtualHost declaration
#NameVirtualHost __VHOSTLISTEN__ #NameVirtualHost __VHOSTLISTEN__
# To insert LLNG user id in Apache logs, declare this format and use it in
# CustomLog directive
#LogFormat "%v:%p %h %l %{Lm-Remote-User}o %t \"%r\" %>s %O" llng
# Portal Virtual Host (auth.__DNSDOMAIN__) # Portal Virtual Host (auth.__DNSDOMAIN__)
<VirtualHost __VHOSTLISTEN__> <VirtualHost __VHOSTLISTEN__>
ServerName auth.__DNSDOMAIN__ ServerName auth.__DNSDOMAIN__
# See above to set LLNG user id in Apache logs
#CustomLog /var/log/apache2/portal.log llng
# DocumentRoot (FCGI scripts) # DocumentRoot (FCGI scripts)
DocumentRoot __PORTALSITEDIR__ DocumentRoot __PORTALSITEDIR__
...@@ -29,6 +35,7 @@ ...@@ -29,6 +35,7 @@
SetHandler fcgid-script SetHandler fcgid-script
#CGIPassAuth on #CGIPassAuth on
Options +ExecCGI Options +ExecCGI
header unset Lm-Remote-User
</Files> </Files>
# Static files # Static files
......
...@@ -25,6 +25,7 @@ LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so ...@@ -25,6 +25,7 @@ LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so
</Directory> </Directory>
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%v:%p %h %l %{Lm-Remote-User}o %t \"%r\" %>s %O" llng
ErrorLog conf/apache2.log ErrorLog conf/apache2.log
CustomLog conf/apache2.log vhost_combined CustomLog conf/apache2.log vhost_combined
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment