mirror of https://github.com/flarum/flarum
Merge pull request #27 from terokorp/feature/apache2.4_htaccess
Adding support for apache 2.4pull/30/head
commit
0acb8857f4
19
.htaccess
19
.htaccess
|
@ -1,11 +1,22 @@
|
|||
# Allow access if Flarum is installed in a subdirectory,
|
||||
# but another .htaccess in a higher directory denies access.
|
||||
Order Allow,Deny
|
||||
Allow from all
|
||||
|
||||
<Files flarum/*>
|
||||
<IfModule mod_authz_host.c>
|
||||
Require all granted
|
||||
|
||||
<Files flarum/*>
|
||||
Require all denied
|
||||
</Files>
|
||||
</IfModule>
|
||||
<IfModule !mod_authz_host.c>
|
||||
Order Allow,Deny
|
||||
Allow from all
|
||||
|
||||
<Files flarum/*>
|
||||
Deny from All
|
||||
</Files>
|
||||
</Files>
|
||||
</IfModule>
|
||||
|
||||
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine on
|
||||
|
|
Loading…
Reference in New Issue