aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache/templates/00_default_vhosts.conf
blob: 9a5f586c3bade05a8674074e893ddc7989acd8d5 (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>