Apache web server configuration

Search another article?

Apache web server configuration

You are here:
< Back

Apache web server configuration

In this article is explained how to configure Apache web server in both Linux & Windows systems in order to log on SGBox all the related information.

Linux systems:

You need to edit yout virtual configuration file, in our case “default-ssl.conf

vi /etc/apache2/sites-enabled/default-ssl.conf

Change the CustomLog value as follow:
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
#CustomLog ${APACHE_LOG_DIR}/access.log combined
CustomLog "| /usr/bin/logger -thttpd -plocal6.notice" combined

Save and restart Apache web server

service apache2 restart

You need also to configure the syslog daemon in order to send logs to your SGBox or collector as describe at this link: https://www.sgbox.it/sgbox/EN/knowledge-base/syslog-configuration-on-ubuntu/

Windows systems:

You can follow this guide in order to setup your agent and retrieve the correct information from access.log file: https://www.sgbox.it/sgbox/EN/knowledge-base/create-tailfolder-command/