/
cosmohome.httpd.conf
51 lines (40 loc) · 1.3 KB
/
cosmohome.httpd.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<VirtualHost *:80>
## Settings for BOINC project cosmohome
ServerAdmin mariusmillea@gmail.com
ServerName www.cosmologyathome.org
ServerAlias cosmologyathome.org
DocumentRoot ${PROJECT_ROOT}/html/user
<Directory />
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>
Alias /download ${PROJECT_ROOT}/download
Alias /stats ${PROJECT_ROOT}/html/stats
Alias /user_profile ${PROJECT_ROOT}/html/user_profile
Alias /ops ${PROJECT_ROOT}/html/ops
ScriptAlias /cosmohome_cgi ${PROJECT_ROOT}/cgi-bin
# NOTE: Allow access but disable PHP script execution
<Directory "${PROJECT_ROOT}/download">
RemoveType .php .phtml
Require all granted
</Directory>
<Directory "${PROJECT_ROOT}/html/stats">
RemoveType .php .phtml
Require all granted
</Directory>
<Directory "${PROJECT_ROOT}/html/user_profile">
RemoveType .php .phtml
Require all granted
</Directory>
<Directory "${PROJECT_ROOT}/html">
Options Indexes MultiViews
AllowOverride AuthConfig
Require all granted
</Directory>
<Directory "${PROJECT_ROOT}/cgi-bin">
Options ExecCGI
AllowOverride AuthConfig
Require all granted
</Directory>
</VirtualHost>