Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <IfModule log_config_module>
- LogFormat "%v:%a %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %{CF-Connecting-IP}i" combinedvhost
- LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %{CF-Connecting-IP}i" combined
- LogFormat "%h %l %u %t "%r" %>s %b %{CF-Connecting-IP}i" common
- CustomLog "logs/access_log" combined
- CustomLog logs/access_log combinedvhost
- <IfModule logio_module>
- LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %{CF-Connecting-IP}i" combinedio
- </IfModule>
- </IfModule>
- <IfModule mod_log_config.c>
- LogFormat "%v:%a %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %{CF-Connecting-IP}i" combinedvhost
- LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %{CF-Connecting-IP}i" combined
- LogFormat "%h %l %u %t "%r" %>s %b %{CF-Connecting-IP}i" common
- LogFormat "%{Referer}i -> %U" referer
- LogFormat "%{User-agent}i" agent
- CustomLog logs/access_log common
- CustomLog logs/access_log combined
- CustomLog logs/access_log combinedvhost
- </IfModule>
- <VirtualHost *:80>
- ServerName www.site1.com
- DocumentRoot /var/www/www.site1.com/htdocs
- CustomLog /var/log/apache/www.site1.com-access.log combined
- ErrorLog /var/log/apache/www.site1.com-error.log
- </VirtualHost>
- <VirtualHost *:80>
- ServerName www.site2.com
- DocumentRoot /var/www/www.site2.com/htdocs
- CustomLog /var/log/apache/www.site2.com-access.log combined
- ErrorLog /var/log/apache/www.site2.com-error.log
- </VirtualHost>
- <VirtualHost *:443>
- ServerName my.site.com
- LogFormat "%{X-Forwarded-For}i %l %u %t "%r" %>s %b %D " commonvhost
- ErrorLog "|/opt/mw/apache-2.4.25-instance1/bin/rotatelogs /apps/logs/my.site.com-443-error.%Y.%m.%d.log 86400"
- CustomLog "|/opt/mw/apache-2.4.25-instance1/bin/rotatelogs /apps/logs/my.site.com-443-access.%Y.%m.%d.log 86400" commonvhost
- </VirtualHost>
- <VirtualHost *:80>
- ServerName my.site.com
- LogFormat "%{X-Forwarded-For}i %l %u %t "%r" %>s %b %D " commonvhost
- ErrorLog "|/opt/mw/apache-2.4.25-instance1/bin/rotatelogs /apps/logs/my.site.com-80-error.%Y.%m.%d.log 86400"
- CustomLog "|/opt/mw/apache-2.4.25-instance1/bin/rotatelogs /apps/logs/my.site.com-80-access.%Y.%m.%d.log 86400" commonvhost
- </VirtualHost>
Add Comment
Please, Sign In to add comment