32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
# ************************************
|
|
# Vhost template in module nagios
|
|
# Managed by Puppet
|
|
# ************************************
|
|
|
|
<VirtualHost <%= @wsgi_vhost_listen_ip %>:80>
|
|
ServerName nagios
|
|
|
|
# Disable directory indexes
|
|
Options -Indexes
|
|
<Directory />
|
|
Options FollowSymLinks
|
|
AllowOverride None
|
|
</Directory>
|
|
|
|
# WSGI implementation for the process_service_check command
|
|
SetEnv NAGIOS_CMD_FILE <%= @nagios_command_file %>
|
|
WSGIScriptAlias <%= @wsgi_process_service_checks_location %> <%= @wsgi_process_service_checks_script %>
|
|
WSGIDaemonProcess nagios_process_service_checks user=nagios group=nagios processes=<%= @wsgi_processes %> threads=<%= @wsgi_threads %> display-name='%{GROUP}' maximum-requests=10000
|
|
WSGIProcessGroup nagios_process_service_checks
|
|
<Location <%= @wsgi_process_service_checks_location %>>
|
|
AuthName "Nagios Access"
|
|
AuthType Basic
|
|
AuthUserFile <%= @cgi_htpasswd_file %>
|
|
require valid-user
|
|
</Location>
|
|
|
|
ErrorLog "<%= @log_dir %>/nagios_wsgi_error.log"
|
|
ServerSignature Off
|
|
CustomLog "<%= @log_dir %>/nagios_wsgi_access.log" combined
|
|
</VirtualHost>
|