Skip to content

Commit c733ea4

Browse files
author
cvdwel
committed
Remove non-SSL rewrite example from apache::vhost
As apache::vhosts requires $docroot to be set, this example doesn't work. However the non-SSL to SSL rewrite is a very common use case (and setting $docroot to /dev/null doesn't work either). Parameter $docroot should be optional. Or at least it should be possible to skip docroot management (create dir, set owner etc.) for example by setting $manage_docroot = false.
1 parent 4cf7709 commit c733ea4

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

manifests/vhost.pp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,6 @@
7070
# docroot => '/path/to/docroot',
7171
# }
7272
# apache::vhost { 'site.name.fqdn':
73-
# port => '80',
74-
# rewrites => [
75-
# {
76-
# comment => "redirect non-SSL traffic to SSL site",
77-
# rewrite_cond => ['%{HTTPS} off'],
78-
# rewrite_rule => ['(.*) https://%{HTTPS_HOST}%{REQUEST_URI}']
79-
# }
80-
# ]
81-
# }
82-
# apache::vhost { 'site.name.fqdn':
8373
# port => '80',
8474
# docroot => '/path/to/other_docroot',
8575
# custom_fragment => template("${module_name}/my_fragment.erb"),

0 commit comments

Comments
 (0)