blob: 3b7d50401bb1298922a220e699411b976e7ed1f0 (
plain)
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
60
61
62
63
|
LICENSE
=======
#
# rhrdweb
#
# Copyright (C) 2016 Christian Pointner <equinox@helsinki.at>
#
# This file is part of rhrdweb.
#
# rhrdweb is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# rhrdweb is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with rhrdweb. If not, see <http://www.gnu.org/licenses/>.
#
Installation
============
# sudo aptitude install apache2 libapache2-mpm-itk libapache2-mod-perl2 libjson-any-perl librhrd-perl libjs-jquery
# sudo a2enmod ssl perl
# sudo /etc/init.d/apache2 restart
add the following to the virtualhost config:
~~~snip~~~
AssignUserID rduser rivendell
Include /etc/apache2/conf-available/javascript-common.conf
Alias /rh-bin/ /var/www/rhrdweb/rh-bin/
<Directory /var/www/rhrdweb/rh-bin/>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
Require all granted
</Directory>
ProxyPass "/ntp" "ws://localhost:3000/ntp"
DocumentRoot /var/www/rhrdweb/www/
<Directory /var/www/rhrdweb/>
Options -Indexes -FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /var/www/rhrdweb/www>
Require all granted
</Directory>
AliasMatch "^/(js|img|styles)(.*)" "/var/www/rhrdweb/www/$1$2"
AliasMatch "^(.*)" "/var/www/rhrdweb/www/index.html"
~~~/snip~~~
|