fuel-plugin-external-zabbix/deployment_scripts/puppet/modules/plugin_zabbix/templates/zabbix_apache.conf.erb

63 lines
1.9 KiB
Plaintext

### Managed by Puppet ###
# Define /zabbix alias, this is the default
<IfModule mod_alias.c>
Alias /zabbix <%= scope.lookupvar('plugin_zabbix::params::zabbix_document_root') %>
</IfModule>
<IfModule mod_fastcgi.c>
AddHandler fastcgi-php5-fpm .php php phar
Action fastcgi-php5-fpm /fastcgi-php5-fpm virtual
Alias /fastcgi-php5-fpm <%= scope.lookupvar('plugin_zabbix::params::zabbix_document_root') %>/fastcgi-php5-fpm
FastCgiExternalServer <%= scope.lookupvar('plugin_zabbix::params::zabbix_document_root') %>/fastcgi-php5-fpm -host 127.0.0.1:<%= scope.lookupvar('plugin_zabbix::params::zabbix_ports')['fcgi'] %> -idle-timeout 900 -pass-header Authorization -pass-header Range
</IfModule>
<Directory "<%= scope.lookupvar('plugin_zabbix::params::zabbix_document_root') %>">
<IfModule authz_core_module>
# Only when redirected internally by FastCGI.
Require env REDIRECT_STATUS
Options +ExecCGI
</IfModule>
Require all granted
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "<%= scope.lookupvar('plugin_zabbix::params::zabbix_document_root') %>/conf">
Order deny,allow
Deny from all
<files *.php>
Order deny,allow
Deny from all
</files>
</Directory>
<Directory "<%= scope.lookupvar('plugin_zabbix::params::zabbix_document_root') %>/api">
Order deny,allow
Deny from all
<files *.php>
Order deny,allow
Deny from all
</files>
</Directory>
<Directory "<%= scope.lookupvar('plugin_zabbix::params::zabbix_document_root') %>/include">
Order deny,allow
Deny from all
<files *.php>
Order deny,allow
Deny from all
</files>
</Directory>
<Directory "<%= scope.lookupvar('plugin_zabbix::params::zabbix_document_root') %>/include/classes">
Order deny,allow
Deny from all
<files *.php>
Order deny,allow
Deny from all
</files>
</Directory>