Files
confdroid_nagios/templates/httpd/forward_conf.erb

18 lines
606 B
Plaintext
Raw Normal View History

2017-07-21 15:33:05 +01:00
<VirtualHost *:<%= @ng_http_port %>>
2017-07-21 14:43:07 +01:00
ServerAdmin root@localhost
DocumentRoot /var/www/html
ServerName www.<%= @ng_nagios_server %>
ServerAlias <%= @ng_nagios_server %>
<% if @ng_use_https == true -%>
2017-07-21 14:43:07 +01:00
Redirect permanent / https://<%= @ng_nagios_server %>/nagios
<% end -%>
<% if @ng_use_https != true -%>
Redirect permanent / http://<%= @ng_nagios_server %>/nagios
2017-07-21 15:33:05 +01:00
<% end -%>
2017-07-21 14:43:07 +01:00
<Directory />
AllowOverride All
</Directory>
ErrorLog /var/log/httpd/<%= @ng_nagios_server %>-error_log
CustomLog /var/log/httpd/<%= @ng_nagios_server %>-access_log common
</VirtualHost>