Attention: All pages of this wiki depend on the pages that come before it, in order as they are listed on the Main Page. Please check for Dependencies.
Please also look at What You Need to Know Before Using This Wiki

/etc/apache2/sites-available/mail.computerisms.com.conf: Difference between revisions

From COCNM
Jump to navigation Jump to search
m (1 revision)
 
(No difference)

Latest revision as of 01:19, 19 September 2013

<VirtualHost 192.168.26.10:80>
        ServerName 		mail.computerisms.com
	ServerAlias		webmail.computerisms.com
        ServerAdmin 		bob.miller@computerisms.com
  	DocumentRoot 		/Computerisms/sites/mail.computerisms.com
        RewriteEngine   	on
        RewriteCond 		%{HTTPS} !=on
        RewriteRule 		^(.*) https://%{SERVER_NAME}$1 [R,L]
	ErrorLog 		/var/log/apache2/mail.computerisms.com/error.log
	CustomLog 		/var/log/apache2/mail.computerisms.com/access.log combined
	LogLevel 		error
</VirtualHost>
<VirtualHost 192.168.26.10:443>
	SetEnvIf 		User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
	SSLEngine 		on
	SSLCertificateFile  	/var/CA/computerisms.com/mail.computerisms.com/mail.computerisms.com.pem
	SSLCertificateKeyFile 	/var/CA/computerisms.com/mail.computerisms.com/mail.computerisms.com.nopw.key
	SSLCACertificateFile	/var/CA/computerisms.com/CA/Computerisms.Certificate.Authority
        SSLProtocol             -All +SSLv3 +TLSv1
	AssignUserID	        roundcube	roundcube
	MaxClientsVHost	        1000
	NiceValue	        10
  	DocumentRoot 		/Computerisms/sites/mail.computerisms.com
  	ServerName 		mail.computerisms.com
	ServerAlias		webmail.computerisms.com
        ServerAdmin 	        bob.miller@computerisms.com
	<Directory /Computerisms/sites/mail.computerisms.com/program/>
		RewriteEngine 	On
		RewriteRule 	!^js|.*\.gif$ - [F]
	</Directory>
	<Directory /Computerisms/sites/mail.computerisms.com/logs>
		Order 		allow,deny
	</Directory>
	<Directory /Computerisms/sites/mail.computerisms.com/plugins/enigma/home/>
		Order 		allow,deny
	</Directory>
	<Directory /Computerisms/sites/mail.computerisms.com/plugins/calendar/temp/>
		Order 		allow,deny
	</Directory>
	<Directory /Computerisms/sites/mail.computerisms.com/temp>
		Order 		allow,deny
	</Directory>
	<Directory /Computerisms/sites/mail.computerisms.com/config>
		Order 		allow,deny
	</Directory>
	<Directory /Computerisms/sites/mail.computerisms.com/>
		AddType 	text/x-component .htc
		php_flag	display_errors	Off
		php_flag	log_errors	On
		php_value	error_log	logs/errors
		php_value	upload_max_filesize	10M
		php_value	post_max_size		12M
		php_value	memory_limit		128M
		php_flag	zlib.output_compression		Off
		php_flag	magic_quotes_gpc		Off
		php_flag	magic_quotes_runtime		Off
		php_flag	zend.ze1_compatibility_mode	Off
		php_flag 	suhosin.session.encrypt 	Off
		#php_value	session.cookie_path		/
		php_flag	session.auto_start	Off
		php_value	session.gc_maxlifetime	21600
		php_value	session.gc_divisor	500
		php_value	session.gc_probability	1
		# http://bugs.php.net/bug.php?id=30766
		php_value	mbstring.func_overload	0
		SetOutputFilter DEFLATE
		#Header 	merge Cache-Control public env=!NO_CACHE
		ExpiresActive 	On
		ExpiresDefault 	"access plus 1 month"
		FileETag 	MTime Size
		Options 	-Indexes
		RewriteEngine 	On
		RewriteRule 	.svn/ - [F]
		RewriteRule 	.git/ - [F]
		RewriteRule 	^README|INSTALL|LICENSE|SQL|bin|CHANGELOG$ - [F]
		RewriteRule 	^favicon.ico$ skins/default/images/favicon.ico
		RewriteRule 	^rc/([0-9]+)/([a-z0-9]+)$ index.php?_task=dummy&_action=plugin.calendar_showlayer&_userid=$1&_ct=$2
		RewriteRule 	^ics/([0-9]+)/([a-z0-9]+)$ index.php?_task=dummy&_action=plugin.calendar_showlayer&_userid=$1&_ct=$2&_ics=1
	</Directory>
	CustomLog 		/var/log/apache2/mail.computerisms.com/ssl_request_log "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" 
	ErrorLog 		/var/log/apache2/mail.computerisms.com/error.log
	CustomLog 		/var/log/apache2/mail.computerisms.com/access.log combined
	LogLevel 		error
</VirtualHost>