meeting-room-booking-system / mrbs-code

MRBS application code
Other
126 stars 63 forks source link

Recommend .htaccess #152

Open jberanek opened 6 years ago

jberanek commented 6 years ago

Hi,

I have found there are 2 ".htaccess" files for diffenent Apache HTTPD version after 1.7.0 . Please help to check if these 2 files can be merged as following content and renamed as ".htaccess".

<IfModule mod_authz_core.c>
    <Files ~ "\.inc$">
        Require all denied
    </Files>
</IfModule>
<IfModule !mod_authz_core.c>
    <Files ~ "\.inc$">
        Order allow,deny
        Deny from all
    </Files>
</IfModule>

Reported by: joehorn

Original Ticket: mrbs/patches/67

jberanek commented 6 years ago

Thanks for your effort, that seems like a good idea.

We'd still want to ship it as a template/example, otherwise we'd break-by-default web server installations which specify "AllowOverride None" further up.

Original comment by: jberanek