Changes

From Amahi Wiki
Jump to: navigation, search
2,190 bytes added ,  14:41, 20 June 2009
no edit summary
====Alternate Install Option====
After running the configuration, do the following:
* Modify conf/webserver.properties. Change port 7443 to 443
* Add the following lines to *-myadito.conf after ServerAlias and save:
redirect permanent / https://myadito:443
* Restart httpd
* Run ant start
* https://myadito or myadito will allow access
 
 
To create certificate used by Apache and Adito, accomplish the following:
*openssl genrsa -out server.key 1024
*openssl req -new -key server.key -x509 -days 1000 -out server.crt
*openssl pkcs12 -export -in server.crt -inkey server.key -out server.p12 -name "adito"
** Password required for PKCS12, must be at least 6 in length
* When doing adito config, import instead of creating a new cert.
** Set type to PKCS12
** Password will be one chosen above for cert
** Name or alias is adito
 
This will ensure apache and adito use the same cert. Not sure if type matters, X.509 or PKCS12.
 
 
----
 
====root====
* yum -y install ant mod_ssl java-1.6.0-openjdk-devel
* export JAVA_HOME=/usr/lib/jvm/jre-1.6.0-openjdk
* create a webapp (myadito)
* cd /var/hda/web-apps/myadito
* chmod -R 777 .
====user====
* wget http://superb-east.dl.sourceforge.net/sourceforge/adito/adito-0.9.1-bin.tar.gz
* tar -xf adito-0.9.1-bin.tar.gz
* mv adito-0.9.1/ server/
* cd server/
* ant install
* run the configuration at http://hda:28080/
* do not configure https or 443 - try 7443 and http only
* once done: ant start
* the server should start - at http://hda:7443
 
* then try to make a proxy to it:
 
====root====
* in the /etc/httpd/conf.d/*-myadito.conf file, add:
 
ProxyPass / http://localhost:7443/
ProxyPassReverse / http://localhost:7443/
 
* then service httpd restart
* that should work as http ONLY
 
----
 
for https traffic from the net to apache:
 
* yum install -y mod_ssl
* change port of the virtualhost to 443
 
----
 
options to play with:
 
 
SSLProxyEngine On
ProxyRemote https://myadito:443/ https://localhost:7443/
 
ProxyRequests Off
ProxyPreserveHost Off
 
ProxyPass / https://localhost:7443/
ProxyPassReverse / https://localhost:7443/
 
'''not all of them at the same time!!'''
 
 
----
 
old:
 
* create a webapp (my-adito)
* cd to it (cd /var/hda/web-apps/my-adito/
12,424

edits