-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
60 lines (38 loc) · 1.25 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
##
# simple-transfer - a simple web app for asynchronously transferring single files
# Copyright (c) 2010 rasenplanscher [ github.com/rasenplanscher ]
##
##
# size configuration
# highly permissive -- should be reduced to sizes that are actually acceptable
##
# the maximum file size PHP will accept
php_value upload_max_filesize 255M
# the maximum request size PHP will accept
# this should be larger than the preceding setting
php_value post_max_size 256M
# the maximum request size httpd will accept
# should be the same as the preceding setting, but must be in bytes
# 256M = 256 * 1024 * 1024 = 268435456
LimitRequestBody 268435456
# the number of seconds after which PHP will stop accepting data from the client
php_value max_input_time 255
# the number of seconds after which PHP will stop executing
# this should be larger than the preceding setting
php_value max_execution_time 256
##
#
# DON'T CHANGE ANYTHING BELOW THIS LINE!!!!
#
##
RewriteEngine On
# :P
RewriteRule favicon\.ico$ - [L]
# prevent looping rewrite
RewriteCond %{THE_REQUEST} !/public
RewriteRule ^public/([^/]+)$ - [L]
# deliver files from public
RewriteCond public/$1 -F
RewriteRule ^([^/]*)$ /public/$1 [L]
# everything else is to be handled by the main app
RewriteRule .* index.php