Browse Source

Aggiornato cable.conf

torn 7 years ago
parent
commit
6d2901041e
1 changed files with 38 additions and 3 deletions
  1. 38 3
      cable.conf

+ 38 - 3
cable.conf

@@ -15,7 +15,10 @@
 	SSLCertificateFile /home/cable/certificati/whisper.crt
 	SSLCertificateKeyFile /home/cable/certificati/whisper.key
 	Include /etc/letsencrypt/options-ssl-apache.conf
-	#SSLCertificateChainFile /home/cable/certificati/whisper.crt
+	#SSLCACertificateFile /home/cable/certificati/rootCA.crt
+
+	# Doesn't make sense for self-signed certificates:
+	SSLUseStapling Off
 
 	# Per proxare websocket (ws://) serve questa roba:
 	# https://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html
@@ -38,9 +41,13 @@
 
 	ProxyPassReverse / http://127.0.0.1:4242/
 
-	CustomLog "/var/log/httpd/cable.access.log" combined
-	ErrorLog "/var/log/httpd/cable.error.log"
+	CustomLog "/var/log/httpd/cable/cable-service.cable.im.access.log" combined
+	ErrorLog "/var/log/httpd/cable/cable-service.cable.im.error.log"
 	LogLevel warn
+
+	# Production:
+	#CustomLog "/dev/null"
+	#ErrorLog "/dev/null"
 </VirtualHost>
 
 
@@ -63,6 +70,14 @@
 	ProxyPreserveHost On
 	ProxyPass / http://127.0.0.1:4242/
 	ProxyPassReverse / http://127.0.0.1:4242/
+
+	CustomLog "/var/log/httpd/cable/cable-service-ca.cable.im.access.log" combined
+	ErrorLog "/var/log/httpd/cable/cable-service-ca.cable.im.error.log"
+	LogLevel warn
+
+	# Production:
+	#CustomLog "/dev/null"
+	#ErrorLog "/dev/null"
 </VirtualHost>
 
 
@@ -99,6 +114,14 @@
 		Order allow,deny
 		Allow from all
 	</Proxy>
+
+	CustomLog "/var/log/httpd/cable/giphy-proxy.cable.im.access.log" combined
+	ErrorLog "/var/log/httpd/cable/giphy-proxy.cable.im.error.log"
+	LogLevel warn
+
+	# Production:
+	#CustomLog "/dev/null"
+	#ErrorLog "/dev/null"
 </VirtualHost>
 
 
@@ -127,6 +150,10 @@
 		Order deny,allow
 		Deny from all
 	</Files>
+
+	CustomLog "/var/log/httpd/cable/db.cable.im.access.log" combined
+	ErrorLog "/var/log/httpd/cable/db.cable.im.error.log"
+	LogLevel warn
 </VirtualHost>
 
 
@@ -145,5 +172,13 @@
 	ProxyPreserveHost On
 	ProxyPass / http://127.0.0.1:9000/
 	ProxyPassReverse / http://127.0.0.1:9000/
+
+	CustomLog "/var/log/httpd/cable/s3.cable.im.access.log" combined
+	ErrorLog "/var/log/httpd/cable/s3.cable.im.error.log"
+	LogLevel warn
+
+	# Production:
+	#CustomLog "/dev/null"
+	#ErrorLog "/dev/null"
 </VirtualHost>