mirror of
https://github.com/inspec/inspec
synced 2024-11-23 21:23:29 +00:00
685ba1bc1e
* Update apache_conf test to check for ServerAlias values. Signed-off-by: Miah Johnson <miah@chia-pet.org> * Add ServerAlias key and values to mock apache conf which includes trailing whitespace. Signed-off-by: Miah Johnson <miah@chia-pet.org> * Updated test to reflect all ServerAlias values being put into a single array item. This is expected as we do not override the key_values default setting of '1' when passing the raw configuration to SimpleConfig. Signed-off-by: Miah Johnson <miah@chia-pet.org> * Update the regular expression to include a conditional with positive lookahead that checks if the line ends with one or more spaces. If the lookahead succeeds we non-greedily capture, and when it fails we greedily capture. Signed-off-by: Miah Johnson <miah@chia-pet.org>
15 lines
372 B
ApacheConf
15 lines
372 B
ApacheConf
# This is the main Apache server configuration file. It contains comments.
|
|
ServerRoot "/etc/apache2"
|
|
ServerAlias inspec.test www.inspec.test io.inspec.test
|
|
|
|
User ${APACHE_RUN_USER}
|
|
Include ports.conf
|
|
|
|
<Directory />
|
|
Options FollowSymLinks
|
|
AllowOverride None
|
|
Require all denied
|
|
</Directory>
|
|
|
|
# Include generic snippets of statements
|
|
IncludeOptional conf-enabled/*.conf
|