Skip to content

Commit

Permalink
Updated: Added apache version specific ssl cert dir verification gran…
Browse files Browse the repository at this point in the history
…t order deny allow directives to config to solve cert validation durring cert generation
  • Loading branch information
brookinsconsulting committed Jul 6, 2017
1 parent 0725ce5 commit d4f4df7
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions config/etc/apache2/sites-available/ezpedia.org.conf
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,19 @@
Options FollowSymlinks Indexes
AllowOverride None
FileETag none
Order Deny,Allow
Allow from all
FileETag none
Require all granted
</Directory>

<Directory /web/doc/vh/ezpedia/ezpedia.org/doc/>
Options FollowSymlinks Indexes
AllowOverride None
Order Deny,Allow
Allow from all
FileETag none
Require all granted
</Directory>

<IfModule mod_rewrite.c>
Expand All @@ -89,6 +102,9 @@
# RewriteLog "/tmp/rewrite.log"
# RewriteLogLevel 5

# Exclude LetsEncryptCertChallengeFiles
RewriteRule ^/\.well-known/acme-challenge/ - [L]

# Redirect all international domain requests
RewriteCond %{HTTP_HOST} ^ezpedia\.org*
RewriteRule ^/en/(.*) https://en.ezpedia.org/$1 [L,R]
Expand All @@ -100,9 +116,6 @@
RewriteRule ^/pt/(.*) https://pt.ezpedia.org/$1 [L,R]
RewriteRule ^/cn/(.*) https://cn.ezpedia.org/$1 [L,R]

# Exclude LetsEncryptCertChallengeFiles
RewriteRule ^/\.well-known/acme-challenge/ - [L]

# Redirect all insecure requests to the ssl vhost
RewriteCond %{HTTP_HOST} !^(.*)\.ezpedia\.org*
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/
Expand Down

0 comments on commit d4f4df7

Please sign in to comment.