Files
confdroid_nagios/templates/httpd/forward_conf.erb

18 lines
587 B
Plaintext
Raw Normal View History

2017-07-21 14:43:07 +01:00
<VirtualHost *:80>
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
<% 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>