-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALLATION
74 lines (49 loc) · 1.89 KB
/
INSTALLATION
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
64
65
66
67
68
69
70
71
72
73
Database setup:
http://hartsock.blogspot.com/2008/07/postgresql-and-grails.html
Conversely can use "trust" instead.
sudo su - postgres
createdb nemo_dev
psql
create user ndunn superuser
STAGING
grails -Dgrails.env=staging war
else
grails war
Other directions:
1 - install grails
2 - install postgresql (above)
3 - run recover.sh and make_production.sh scripts in the script directory (or do manually (may need to )
4 - create dummy certificate: https://www.digitalocean.com/community/articles/how-to-create-a-ssl-certificate-on-a
pache-for-ubuntu-12-04
- OR -
4 - download certificate: ??
5 - integrate with tomcat using mod_proxy:
- enable mod proxy ( on apache 2.2 / Ubutnut 12 sudo a2enmod)
http://tomcat.apache.org/tomcat-7.0-doc/proxy-howto.html#Apache_2.0_Proxy_Support
- should be no changes on the tomcat end Config.groovy has the server set to https://
apache changes:
- add rewrite rule to "sites-enabled/000-default":
RewriteEngine on
ReWriteCond %{SERVER_PORT} !^443$
RewriteRule ^/nemo/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
- add proxy rule to "mods-enabled/proxy.conf":
ProxyRequests Off
<Proxy *>
#AddDefaultCharset off
Order deny,allow
Deny from all
Allow from localhost
</Proxy>
ProxyPass /nemo/static http://cas-vm-nemo.uoregon.edu:8080/nemo/static
ProxyPassReverse /nemo/static http://cas-vm-nemo.uoregon.edu:8080/nemo/static
ProxyPass /nemo http://cas-vm-nemo.uoregon.edu:8080/nemo
ProxyPassReverse /nemo http://cas-vm-nemo.uoregon.edu:8080/nemo
<Location />
Order allow,deny
Allow from all
</Location>
- update server info in "sites-enabled/default-ssl" by adding :
ServerName cas-vm-nemo.uoregon.edu:443
(and updating the cert files)
SLCertificateFile /etc/apache2/ssl/apache.crt
SSLCertificateKeyFile /etc/apache2/ssl/apache.key