aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache/templates/00_default_vhosts.conf
blob: 74c92dd5e73fdfe86acb647fffbca4a9accacdf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<VirtualHost *:80>
	DocumentRoot /var/www/html
	<Location />
		Allow from all
	</Location>
	<%- 
	    default_redirect = scope.lookupvar('apache::var::default_vhost_redirect')
	    if default_redirect == ''
	-%>
	Redirect 404 /
	ErrorDocument 404 "Page Not Found"
	<%- else -%>
	Redirect / <%= @default_redirect %>
	<%- end -%>
</VirtualHost>