Commit 7e233fe
Ciaran McCrisken
(IAC-1186) Add new $use_servername_for_filenames parameter
Prior to this commit, the `$filename` variable, which is used to
construct the filename of Apache's various config and log files,
obtained it's default value from the `$name` parameter.
As #2064 highlights, it is possible for `$name` to contain spaces
in it and this can cause cumbersome log file names, albeit POSIX
compliant.
Also related is #2068, which changes the `$filename` variable source
from `$name` to `$servername`. This arguably seems more appropriate,
especially given that `$servername` defaults to `$name` if undefined.
This commit attempts to create a satisfactory solution to both #2064
and #2068 by introducing the `$use_servername_for_filenames` param.
When set to `true`, a sanitized `$servername` parameter value will be
used to construct `$filename`.
When undefined or set to `$false`, it will retain the existing
behaviour and use the `$name` parameter value.
This will default to `false` until the next major release (v6.0.0),
after which it will default to `true`. Then, in the subsequent major
release (v7.0.0) it will be deprecated altogether and the default
behaviour will be to use the sanitized value of `$servername` for the
`$filename` var.
Warning messages are output to the console to alert users of this
change in behaviour.1 parent 935acd4 commit 7e233fe
File tree
3 files changed
+98
-8
lines changed- manifests
- spec/acceptance
- templates/vhost
3 files changed
+98
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1717 | 1717 | | |
1718 | 1718 | | |
1719 | 1719 | | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
1720 | 1726 | | |
1721 | 1727 | | |
1722 | 1728 | | |
| |||
1782 | 1788 | | |
1783 | 1789 | | |
1784 | 1790 | | |
| 1791 | + | |
1785 | 1792 | | |
1786 | 1793 | | |
1787 | 1794 | | |
| |||
2036 | 2043 | | |
2037 | 2044 | | |
2038 | 2045 | | |
2039 | | - | |
2040 | | - | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
2041 | 2079 | | |
2042 | 2080 | | |
2043 | 2081 | | |
| |||
2096 | 2134 | | |
2097 | 2135 | | |
2098 | 2136 | | |
2099 | | - | |
| 2137 | + | |
2100 | 2138 | | |
2101 | | - | |
| 2139 | + | |
2102 | 2140 | | |
2103 | 2141 | | |
2104 | 2142 | | |
| |||
2117 | 2155 | | |
2118 | 2156 | | |
2119 | 2157 | | |
2120 | | - | |
| 2158 | + | |
2121 | 2159 | | |
2122 | | - | |
| 2160 | + | |
2123 | 2161 | | |
2124 | 2162 | | |
2125 | 2163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
948 | 948 | | |
949 | 949 | | |
950 | 950 | | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
951 | 1003 | | |
952 | 1004 | | |
953 | 1005 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
0 commit comments