-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
moodle.conf
36 lines (29 loc) · 1.2 KB
/
moodle.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<VirtualHost *:80>
DocumentRoot /var/www/html
DirectoryIndex index.php
ServerSignature Off
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
<Directory /var/www/html/>
AllowOverride None
Options -Indexes
ErrorDocument 404 /error/index.php
ErrorDocument 403 /error/index.php?code=404
RewriteEngine On
RewriteRule "(^|/)\.(?!well-known/)" - [F]
RewriteRule "(/fixtures/)" - [F]
RewriteRule "(/node_modules/)" - [F]
RewriteRule "(/tests/behat/)" - [F]
RewriteRule "(/vendor/)" - [F]
RewriteRule "(\.lock)" - [F]
RewriteRule "(composer\.json)" - [F]
RewriteRule "(/environment.xml)" - [F]
RewriteRule "(/install.xml)" - [F]
RewriteRule "(/moodle_readme)" - [F]
RewriteRule "(phpunit\.xml\.dist)" - [F]
RewriteRule "(/readme)" - [F]
RewriteRule "(/README)" - [F]
RewriteRule "(/upgrade\.txt)" - [F]
</Directory>
</VirtualHost>