Skip to content

Commit

Permalink
Allows access to the mod_wsgi files for source and journalist app
Browse files Browse the repository at this point in the history
Without the access to the /var/www, our apps can not be accessed.
  • Loading branch information
kushaldas committed Feb 23, 2021
1 parent 1bd79fd commit f6e958d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ LimitRequestBody 524288000
Require all denied
</Directory>

# Permit limited access specifically to the SecureDrop wsgi files.
<Directory /var/www/>
Options None
AllowOverride None
<Limit GET POST HEAD>
Require ip {{ securedrop_app_apache_allow_from }}
</Limit>
<LimitExcept GET POST HEAD>
Require all denied
</LimitExcept>
</Directory>

# Permit limited access specifically to the SecureDrop application directory.
<Directory /var/www/securedrop>
Options None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,18 @@ LimitRequestBody 524288000
Require all denied
</Directory>

# Permit limited access specifically to the SecureDrop wsgi files.
<Directory /var/www/>
Options None
AllowOverride None
<Limit GET POST HEAD>
Require ip {{ securedrop_app_apache_allow_from }}
</Limit>
<LimitExcept GET POST HEAD>
Require all denied
</LimitExcept>
</Directory>

# Permit limited access specifically to the SecureDrop application directory.
<Directory /var/www/securedrop>
Options None
Expand Down

0 comments on commit f6e958d

Please sign in to comment.