forked from kohler/peteramati
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
36 lines (28 loc) · 1.1 KB
/
.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
29
30
31
32
33
34
35
36
# These directives limit how large a paper can be uploaded.
# post_max_size should be >= upload_max_filesize.
php_value upload_max_filesize 15M
php_value post_max_size 15M
# A large memory_limit helps when sending very large zipped files.
php_value memory_limit 128M
# Turn off the hateful magic_quotes_gpc.
php_flag magic_quotes_gpc off
# Default to UTF-8 (most scripts will override this with <meta>).
AddDefaultCharset UTF-8
# Use index.php for directory access.
DirectoryIndex index.php
# Prevent access to git directories, MySQL files, regardless of case.
RedirectMatch 403 ^.*/(\.[Gg][Ii][Tt].*|\.[Mm][Yy].*)($|/.*$)
# Don't use MultiViews, which can conflict with mod_rewrite suffixless URLs.
Options -MultiViews
# Uncomment this line to ONLY grant access via https. Requires mod_ssl.
#
# SSLRequireSSL
# HTTP Authentication: To ask the server to authenticate users,
# uncomment these lines and set $Opt["httpAuthLogin"] in
# Code/options.inc. The $Opt["httpAuthLogin"] value should correspond
# to your AuthType and AuthName.
#
# AuthType Basic
# AuthName "HotCRP"
# AuthUserFile FILENAME
# Require valid-user