diff options
author | mh <mh@immerda.ch> | 2008-11-07 18:44:03 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-11-07 18:44:03 +0000 |
commit | d5cd38b7e13d073ef48b49b11ceaac55dff23214 (patch) | |
tree | 22fc4639e342ece08f80f82abdba309ba9e4e95a /templates/vhosts/static | |
parent | 789bb5be9fe4d77d326be6f4cf70d7f844c737f6 (diff) |
added template for static hosting
Diffstat (limited to 'templates/vhosts/static')
-rw-r--r-- | templates/vhosts/static/OpenBSD.erb | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/templates/vhosts/static/OpenBSD.erb b/templates/vhosts/static/OpenBSD.erb new file mode 100644 index 0000000..9d543a2 --- /dev/null +++ b/templates/vhosts/static/OpenBSD.erb @@ -0,0 +1,30 @@ +# <%= servername %> +<VirtualHost *:80> + Include conf.d/defaults.inc + ServerName <%= servername %> + <%- unless serveralias.to_s.empty? then -%> + ServerAlias <%= serveralias %> + <%- end -%> + DocumentRoot <%= documentroot %> + + ErrorLog <%= logdir %>/error_log + CustomLog <%= logdir %>/access_log combined + + <%- if ssl_mode.to_s=='force' then %> + Redirect permanent / https://<%= servername %>/ + <%- end %> +</VirtualHost> +<%- unless ssl_mode.to_s == 'false' then %> +<VirtualHost *:443> + Include conf.d/defaults.inc + Include conf.d/ssl_defaults.inc + ServerName <%= servername %> + <%- unless serveralias.to_s.empty? then -%> + ServerAlias <%= serveralias %> + <%- end -%> + DocumentRoot <%= documentroot %> + + ErrorLog <%= logdir %>/error_log + CustomLog <%= logdir %>/access_log combined +</VirtualHost> +<%- end %> |