Commit ec74a8e
committed
Add support for setting UserDir in Virtual Hosts
We can only set this setting at the VirtualHost level by relying on the
`custom_fragment` parameter, which does not scale when we want to enable
UserDir for a single VHost because we have to manually disable it on all
other VHosts.
With this change, one can ensure UserDir is active only on specific
VHost with something like:
```
Apache::Vhost {
userdir => 'disabled',
}
apache::vhost { 'example.com':
# [...]
userdir => 'enabled',
}
```
A specific `userdir` parameter avoid clashes that would prevent this
technique to be effective with `custom_fragment`.1 parent 58d3cb6 commit ec74a8e
File tree
3 files changed
+31
-0
lines changed- manifests
- spec/defines
- templates/vhost
3 files changed
+31
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1995 | 1995 | | |
1996 | 1996 | | |
1997 | 1997 | | |
| 1998 | + | |
1998 | 1999 | | |
1999 | 2000 | | |
2000 | 2001 | | |
| |||
2854 | 2855 | | |
2855 | 2856 | | |
2856 | 2857 | | |
| 2858 | + | |
| 2859 | + | |
| 2860 | + | |
| 2861 | + | |
| 2862 | + | |
| 2863 | + | |
| 2864 | + | |
| 2865 | + | |
| 2866 | + | |
| 2867 | + | |
| 2868 | + | |
| 2869 | + | |
2857 | 2870 | | |
2858 | 2871 | | |
2859 | 2872 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
| 499 | + | |
499 | 500 | | |
500 | 501 | | |
501 | 502 | | |
| |||
2472 | 2473 | | |
2473 | 2474 | | |
2474 | 2475 | | |
| 2476 | + | |
| 2477 | + | |
| 2478 | + | |
| 2479 | + | |
| 2480 | + | |
| 2481 | + | |
| 2482 | + | |
| 2483 | + | |
| 2484 | + | |
| 2485 | + | |
| 2486 | + | |
| 2487 | + | |
| 2488 | + | |
| 2489 | + | |
2475 | 2490 | | |
2476 | 2491 | | |
2477 | 2492 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments