Просмотр исходного кода

* Bug: arreglados los logs en los Virtual Hosts de Apache

Guzmán Castanedo Villalba 6 лет назад
Родитель
Сommit
af7f02d586

+ 2 - 1
etc/apache2/sites-available/mediawiki.conf

@@ -3,7 +3,8 @@
 	DocumentRoot /var/www/mediawiki
 
 	ErrorLog logs/error.log
-	CustomLog logs/access.log "%v %h %l %u %t \"%r\" %>s %b"
+	LogFormat "%h %l %u %t \"%r\" %>s %b" common
+	CustomLog logs/access.log common
 
 </VirtualHost>
 

+ 2 - 2
etc/apache2/sites-available/phpinfo-ssl.conf

@@ -22,7 +22,7 @@
 
 	Header always set Strict-Transport-Security "max-age=63072000; includeSibdomains;"
 	
-	ErrorLog logs/phpinfo-error.log
-	CustomLog logs/phpinfo-access.log "%v %h %l %u %t \"%r\" %>s %b"
+	LogFormat "%h %l %u %t \"%r\" %>s %b" common
+	CustomLog logs/access.log common
 
 </VirtualHost *:443>

+ 2 - 2
etc/apache2/sites-available/phpinfo.conf

@@ -2,8 +2,8 @@
 	ServerName localhost
 	DocumentRoot /var/www/html
 
-	ErrorLog logs/error.log
-	CustomLog logs/access.log "%v %h %l %u %t \"%r\" %>s %b"
+	LogFormat "%h %l %u %t \"%r\" %>s %b" common
+	CustomLog logs/access.log common
 
 </VirtualHost>