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/files.computerisms.com.conf

From COCNM
Revision as of 01:19, 19 September 2013 by Bob (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
<VirtualHost 192.168.26.10:80>
	ServerName		files.computerisms.com
	ServerAdmin		bob.miller@computerisms.com
	RewriteEngine           on
        RewriteCond             %{HTTPS} !=on
        RewriteCond             %{REMOTE_ADDR} !^192.168.26
        RewriteRule             ^(.*) https://%{SERVER_NAME}$1 [R,L]
	AssignUserID		files		files
	MaxClientsVhost		1000
	NiceValue		10
	DAVLockDB 		/Computerisms/sites/DAVLock.db
	DocumentRoot		/home/webDAV
	<Directory /home/webDAV>
		Options		FollowSymLinks Indexes MultiViews
		AllowOverride 	None
		DAV 		On
		Require		ip		192.168.26.0/24
	</Directory>
	<Location />
		AuthType 	Basic
		AuthBasicProvider 		ldap
		AuthLDAPBindDN	authenticator@computerisms.com
		AuthLDAPBindPassword 		"ThisDevilIkn0w"
		AuthLDAPURL 	"ldap://127.0.0.1/cn=users,dc=computerisms,dc=com?sAMAccountName?sub?(objectClass=person)"
		AuthName 	"USE YOUR WINDOWS ACCOUNT"
		AuthUserFile 	/dev/null
		Require 	valid-user
	</Location>
	ErrorLog                /var/log/apache2/files.computerisms.com/error.log
       	LogLevel                debug
        CustomLog               /var/log/apache2/files.computerisms.com/access.log combined
	ServerSignature         Off     
</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/files.computerisms.com/files.computerisms.com.pem
        SSLCertificateKeyFile   /var/CA/computerisms.com/files.computerisms.com/files.computerisms.com.nopw.key
        SSLCACertificateFile    /var/CA/computerisms.com/CA/Computerisms.Certificate.Authority
        SSLProtocol             -All +SSLv3 +TLSv1
	ServerName		files.computerisms.com
	ServerAdmin		bob.miller@computerisms.com
	AssignUserID		files		files
	MaxClientsVhost		1000
	NiceValue		10
	DAVLockDB 		/Computerisms/sites/DAVLock.db
	DocumentRoot		/home/webDAV
	<Directory /home/webDAV>
		Options		FollowSymLinks Indexes MultiViews
		AllowOverride 	None
		Require		all		granted
		DAV 		On
	</Directory>
	<Location />
		AuthType 	Basic
		AuthBasicProvider 		ldap
		AuthLDAPBindDN	authenticator@computerisms.com
		AuthLDAPBindPassword 		"ThisDevilIkn0w"
		AuthLDAPURL 	"ldap://127.0.0.1/cn=users,dc=computerisms,dc=com?sAMAccountName?sub?(objectClass=person)"
		AuthName 	"USE YOUR WINDOWS ACCOUNT"
		AuthUserFile 	/dev/null
		Require 	valid-user
	</Location>
	ErrorLog                /var/log/apache2/files.computerisms.com/error.log
       	LogLevel                debug
        CustomLog               /var/log/apache2/files.computerisms.com/access.log combined
	ServerSignature         Off     
</VirtualHost>