-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathocean-portal.conf
49 lines (40 loc) · 1.52 KB
/
ocean-portal.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
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhos
DocumentRoot /var/www/html
Alias /oc/lib /opt/ocean-portal/usr/local/share/portal/js/comp
ScriptAlias /oc/cgi /opt/ocean-portal/var/www/cgi-bin/portal
Alias /oc /opt/ocean-portal/usr/local/share/portal
Alias /portal /opt/data
<Directory /opt/ocean-portal/var/www/cgi-bin/portal>
Options +ExecCGI
AddHandler cgi-script .py
Options FollowSymLinks
Require all granted
#SetEnv LD_LIBRARY_PATH /opt/ocean-portal/usr/lib:/opt/ocean-portal/usr/lib64
#SetEnv PYTHONPATH /opt/ocean-portal/usr/lib64/python2.6/site-packages/:/opt/ocean-portal/usr/lib/python2.6/site-packages/
SetEnv PYTHONPATH /opt/ocean-portal/usr/local/lib/python2.7/dist-packages/
</Directory>
<Directory /opt/data>
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
Require all granted
Satisfy Any
</Directory>
<Directory "/opt/ocean-portal/usr/local/share/portal">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
Satisfy Any
</Directory>
</VirtualHost>