I want to log all access requests, whether from http (port 80) or https (port 443) to the same log file, namely
/var/www/vhosts/<mydomain.com>/statistics/logs/access_log
In other words, no separate access_ssl_log.
I have tried including a vhost.conf at the end of httpd.conf, like so:
Include "/var/www/vhosts/system/<mydomain.com>/conf/vhost.conf"
vhost.conf contains:
<IfModule mod_ssl.c>
<VirtualHost <myIP>:443 >
CustomLog /var/www/vhosts/system/<mydomain.com>/logs/access_log plesklog
</VirtualHost>
</IfModule>
After restarting Apache, https requests are still logged to access_ssl_log.
Also, I fear that the directive to include vhost.conf will get deleted the next time Plesk overwrites httpd.conf. How do I make the include permanent?
/var/www/vhosts/<mydomain.com>/statistics/logs/access_log
In other words, no separate access_ssl_log.
I have tried including a vhost.conf at the end of httpd.conf, like so:
Include "/var/www/vhosts/system/<mydomain.com>/conf/vhost.conf"
vhost.conf contains:
<IfModule mod_ssl.c>
<VirtualHost <myIP>:443 >
CustomLog /var/www/vhosts/system/<mydomain.com>/logs/access_log plesklog
</VirtualHost>
</IfModule>
After restarting Apache, https requests are still logged to access_ssl_log.
Also, I fear that the directive to include vhost.conf will get deleted the next time Plesk overwrites httpd.conf. How do I make the include permanent?