Fixed: Permissions

This commit is contained in:
Laurent Destailleur 2015-01-11 15:15:51 +01:00
parent e4b89779f7
commit 9662879e52
2 changed files with 19 additions and 4 deletions

View File

@ -1,7 +1,17 @@
# To disable access
<IfVersion >= 2.3> <IfVersion >= 2.3>
Require all denied Require all denied
</IfVersion> </IfVersion>
<IfVersion < 2.3> <IfVersion < 2.3>
Order deny, allow Order deny, allow
Deny from all Denied from all
</IfVersion>
# To allow access
<IfVersion >= 2.3>
Require all granted
</IfVersion>
<IfVersion < 2.3>
Order allow, deny
Allow from all
</IfVersion> </IfVersion>

View File

@ -14,8 +14,13 @@ Alias /dolibarr /usr/share/dolibarr/htdocs
# Directory for web pages # Directory for web pages
<Directory /usr/share/dolibarr/htdocs> <Directory /usr/share/dolibarr/htdocs>
Order deny,allow <IfVersion >= 2.3>
Require all granted
</IfVersion>
<IfVersion < 2.3>
Order allow, deny
Allow from all Allow from all
</IfVersion>
DirectoryIndex index.php DirectoryIndex index.php
Options +FollowSymLinks +Indexes Options +FollowSymLinks +Indexes