other_vhosts_access.log > access.log

This commit is contained in:
Matthew Saunders Brown 2021-10-02 14:54:19 -07:00
parent ce2a3470f4
commit 68a8af5409

View File

@ -74,6 +74,7 @@ sed -i "s|/var/www/html|/srv/www/html|g" /etc/apache2/sites-available/000-defau
sed -i "s|/var/www/html|/srv/www/html|g" /etc/apache2/sites-available/default-ssl.conf sed -i "s|/var/www/html|/srv/www/html|g" /etc/apache2/sites-available/default-ssl.conf
## double check this next one after getting full setup going w/ haproxy & varnish ## double check this next one after getting full setup going w/ haproxy & varnish
sed -i "s|%h %l %u|%a %l %u|g" /etc/apache2/apache2.conf sed -i "s|%h %l %u|%a %l %u|g" /etc/apache2/apache2.conf
sed -i "s|other_vhosts_access.log|access.log|" /etc/apache2/conf-available/other-vhosts-access-log.conf
rm /var/log/apache2/other_vhosts_access.log rm /var/log/apache2/other_vhosts_access.log
# configure security # configure security
echo '<Directory "/srv/www/">' >> /etc/apache2/conf-available/security.conf echo '<Directory "/srv/www/">' >> /etc/apache2/conf-available/security.conf