diff options
Diffstat (limited to 'templates/vhosts/static')
-rw-r--r-- | templates/vhosts/static/OpenBSD.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/vhosts/static/OpenBSD.erb b/templates/vhosts/static/OpenBSD.erb index 8f04ad2..1c2498b 100644 --- a/templates/vhosts/static/OpenBSD.erb +++ b/templates/vhosts/static/OpenBSD.erb @@ -10,11 +10,11 @@ ErrorLog <%= logdir %>/error_log CustomLog <%= logdir %>/access_log combined - <%- if ssl_mode.to_s=='force' then -%> + <%- if ssl_mode.to_s == 'force' then -%> Redirect permanent / https://<%= servername %>/ <%- end -%> - <%- if options.to_s != 'absent' or htpasswd_file.to_s != 'absent' then -%> + <%- if (options.to_s != 'absent' or htpasswd_file.to_s != 'absent') and not ssl_mode.to_s == 'force' then -%> <Directory "<%= documentroot %>/"> <%- unless options.to_s == 'absent' then -%> Options <%= options %> |