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/nagios.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 		nagios.computerisms.com
	ServerAdmin 		bob.miller@computerisms.com
	DocumentRoot 		/usr/local/nagios/share
	RewriteEngine		On
	RewriteCond 		%{HTTPS} off
	RewriteRule 		(.*) https://%{HTTP_HOST}%{REQUEST_URI}
	ErrorLog 		/var/log/apache2/nagios.computerisms.com/error.log
	LogLevel 		error
	CustomLog 		/var/log/apache2/nagios.computerisms.com/access.log combined
	ServerSignature 	Off
</VirtualHost>
<VirtualHost 192.168.26.10:443>
	ServerName 		nagios.computerisms.com
	ServerAdmin 		bob@computerisms.com
	AssignUserID		nagios	 nagios
	MaxClientsVHost		1000
	NiceValue		10
	SetEnvIf 		User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
	SSLEngine 		on
	SSLCertificateFile  	/var/CA/computerisms.com/nagios.computerisms.com/nagios.computerisms.com.pem
	SSLCertificateKeyFile 	/var/CA/computerisms.com/nagios.computerisms.com/nagios.computerisms.com.nopw.key
	SSLCACertificateFile	/var/CA/computerisms.com/CA/Computerisms.Certificate.Authority
        SSLProtocol             -All +SSLv3 +TLSv1
	DocumentRoot 		/usr/local/nagios/share	
	ScriptAlias 		/nagios/cgi-bin 	/usr/local/nagios/sbin
	Alias 			/nagios 		/usr/local/nagios/share
	<Directory /usr/local/nagios/share>
		Options 	MultiViews
		AllowOverride 	None
		Require		all			granted
   		AuthName 	"Nagios Access"
   		AuthType 	Basic
		AuthBasicProvider 		ldap
		AuthLDAPUrl	ldap://localhost/CN=Users,DC=computerisms,dc=com?sAMAccountName?sub?(objectClass=*)
		AuthLDAPBindDN 	authenticator@computerisms.com
		AuthLDAPBindPassword		ThisDevilIkn0w
		AuthLDAPGroupAttributeIsDN	on
		Require		ldap-group	CN=Domain Admins,CN=Users,DC=computerisms,DC=com
	</Directory>
	<Directory "/usr/local/nagios/sbin">
   		Options 	ExecCGI
   		AllowOverride 	None
   		Order 		allow,deny
   		Allow 		from all
   		AuthName 	"Nagios Access"
   		AuthType 	Basic
		AuthBasicProvider 		ldap
		AuthLDAPUrl	ldap://localhost/CN=Users,DC=computerisms,dc=com?sAMAccountName?sub?(objectClass=*)
		AuthLDAPBindDN 	authenticator@computerisms.com
		AuthLDAPBindPassword		ThisDevilIkn0w
		AuthLDAPGroupAttributeIsDN	on
		Require		ldap-group	CN=Domain Admins,CN=Users,DC=computerisms,DC=com
	</Directory>
	ErrorLog 		/var/log/apache2/nagios.computerisms.com/error.log
	LogLevel 		debug
	CustomLog 		/var/log/apache2/nagios.computerisms.com/access.log combined
	ServerSignature 	Off
</VirtualHost>