8 |
8 |
9 # The directory where the files are stored. |
9 # The directory where the files are stored. |
10 # This directory needs to be r/w by the web server user |
10 # This directory needs to be r/w by the web server user |
11 # (wwwrun, www-data, who ever), but it must not be |
11 # (wwwrun, www-data, who ever), but it must not be |
12 # accessible via HTTP(s) |
12 # accessible via HTTP(s) |
13 <Directory $var> |
13 <Directory "$var"> |
14 Require all denied |
14 Require all denied |
15 </Directory> |
15 </Directory> |
16 |
16 |
17 Action once-handler /once-handler/once.cgi virtual |
17 Action once-handler /once-handler/once.cgi virtual |
18 ScriptAlias /once-handler/ $lib/ |
18 ScriptAlias /once-handler/ $lib/ |
19 Alias $location/public $lib/public |
19 Alias $location/static $lib/static |
20 |
20 |
21 # Order of location blocks matters! |
21 # Order of location blocks matters! |
22 # We handle requests to our script, with the exception (see below) |
22 # We handle requests to our script, with the exception (see below) |
23 # for …/public/… requests. These should be answered from a simple |
23 # for …/static/… requests. These should be answered from a simple |
24 # static directory for style sheets and similiar |
24 # static directory for style sheets and similiar |
25 <Location "$location"> |
25 <Location "$location"> |
26 SetHandler once-handler |
26 SetHandler once-handler |
27 </Location> |
27 </Location> |
28 <Location "$location/public"> |
28 <Location "$location/static"> |
29 SetHandler none |
29 SetHandler none |
30 </Location> |
30 </Location> |
31 |
31 |
32 <Directory "$lib/public"> |
32 <Directory "$lib/static"> |
33 Require all granted |
33 Require all granted |
34 Allow from all |
34 Allow from all |
35 </Directory> |
35 </Directory> |
36 |
36 |
37 <Directory "$lib"> |
37 <Directory "$lib"> |