-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathRSAT_config_default_apache2.2.conf
52 lines (45 loc) · 1.67 KB
/
RSAT_config_default_apache2.2.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
52
################################################################
## Apache Web server configuration for the Regulatory Sequence
## Analysis Tools (RSAT).
##
## This file should be placed at some appropriate place in the Apache
## configuration folder. This place depends on the operating system
## (Mac OSX or Linux) and on the distribution (Linux Ubuntu, Centos,
## ...).
##
## Some Usual places:
## On Centos /etc/httpd/conf.d/rsat.conf
## On Ubuntu /etc/apache2/sites-enabled/rsat.conf
## On Mac OSX /etc/apache2/users/rsat.conf
## You must replace the bracketed RSAT_PARENT_PATH by the parent dir
## of your rsat folder.
################################################################
## Define the alias.
##
## The RSAT server should be visible when adding this alias after the
## Web server URL.
Alias /rsat [RSAT_PARENT_PATH]/rsat/public_html/
################################################################
## Configuration for Apache 2.2
ScriptAlias /rsat/ [RSAT_PARENT_PATH]/rsat/public_html/
## Enable CGI scripts in the public_html directory
<Directory "[RSAT_PARENT_PATH]/rsat/public_html/">
AllowOverride All
Setenv RSAT [RSAT_PARENT_PATH]/rsat/
SetEnv R_LIBS_USER [RSAT_PARENT_PATH]/rsat/R-scripts/Rpackages/
AddHandler cgi-script .cgi
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
## In the data directory we enable indexes, in order to allow users to
## browse data files.
##
## Note: if the path includes symbolik links, it could be required to add
## Options SymLinksIfOwnerMatch
<Directory "[RSAT_PARENT_PATH]/rsat/public_html/data/">
AllowOverride all
Options +Indexes
Order allow,deny
Allow from all
</Directory>