-
Notifications
You must be signed in to change notification settings - Fork 509
/
.htaccess
28 lines (26 loc) · 946 Bytes
/
.htaccess
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
# Block access to some (potentially) sensitive files.
# Note: if apache gives you an "order not allowed here" error,
# please make sure that your apache configuration contains
# "AllowOverride Limit" for this directory, i.e. something
# like the following:
#
# <Directory /home/*/public_html>
# AllowOverride Options Indexes FileInfo Limit
# [...]
# </Directory>
#
# (See also http://brat.nlplab.org/troubleshooting.html)
<FilesMatch "^(\.htaccess|config\.py)$">
Require all denied
</FilesMatch>
Options +ExecCGI +FollowSymLinks
DirectoryIndex index.xhtml
# When using FastCGI, uncomment the following three lines and replace
# "INSTALLATION-ROOT" with the URL path of the application.
# For example, if the URL to the application is
# "http://www.example.com/~user/visualizer/",
# "INSTALLATION-ROOT" should be replaced with "/~user/visualizer/"
#
#RewriteEngine On
#RewriteBase INSTALLATION-ROOT
#RewriteRule ajax\.cgi$ ajax.fcgi