...
By default, Apache is installed in C:\Apache24. If you are using a different directory, adjust the paths accordingly.
The main configuration file is typically located at 'C:\Apache24\conf\httpd.conf'. Open 'httpd.conf' in a text editor
Find the section in 'httpd.conf' where logging is configured. It It should have below entry:
...
Code Block |
---|
CustomLog "<Log Directory>/access.log" combined |
Replace <Log Directory> with actual log file path/directory.
Save 'httpd.conf' and close the text editor.
Open Command Prompt as an administrator and restart the Apache service
...
By default and depending upon Linux distribution, Apache's configuration directory would be '/etc/httpd' or '/etc/apache2'. The main configuration file would be located at '/etc/httpd/conf/httpd.conf' or '/etc/apache2/apache2.conf'.
Based on linux distribution, open 'httpd.conf' or 'apache2.conf' using text editor
Code Block |
---|
vi /etc/httpd/conf/httpd.conf |
or
Code Block |
---|
vi /etc/apache2/apache2.conf |
Find the section in 'httpd.conf/apache2.conf' where logging is configured. It should have below entry:
...
Code Block |
---|
CustomLog "<Log Directory>/access.log" combined |
Replace <Log Directory> with actual log file path/directory.
...
Code Block |
---|
systemctl restart httpd |
or
Code Block |
---|
systemctl restart apache2 |
...