Skip to content

Commit

Permalink
Merge 4bb55cb into e514b56
Browse files Browse the repository at this point in the history
  • Loading branch information
Franklin Webber committed Jan 25, 2018
2 parents e514b56 + 4bb55cb commit c24e65b
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions docs/resources/apache_conf.md.erb
Expand Up @@ -31,13 +31,19 @@ The following examples show how to use this InSpec audit resource.
### Test for blocking .htaccess files on CentOS

describe apache_conf do
its('AllowOverride') { should eq 'None' }
its('AllowOverride') { should include 'None' }
end

### Test ports for SSL

describe apache_conf do
its('Listen') { should eq '443'}
its('Listen') { should cmp '443' }
end

### Test multiple ports are listening

describe apache_conf do
its('Listen') { should =~ [ '80', '443' ] }
end

<br>
Expand All @@ -51,11 +57,11 @@ This InSpec audit resource matches any service that is listed in the Apache conf

or:

its('Timeout') { should eq 300 }
its('Timeout') { should cmp '300' }

For example:

describe apache_conf do
its('MaxClients') { should eq 100 }
its('Listen') { should eq '443'}
its('MaxClients') { should cmp '100' }
its('Listen') { should cmp '443' }
end

0 comments on commit c24e65b

Please sign in to comment.