Monday, April 7, 2014

pwm installation notes

because i should type it out...
 # apt-get install tomcat7  
 # apt-get install default-jdk  
   
 After tomcat is installed:  
 /etc/tomcat7 <- configuration  
 /var/lib/tomcat7/webapps <- webapps where the war explodes  
   
 Proxy modules are not enabled by default:  
   
 # ln -s /etc/apache2/mods-available/proxy.load /etc/apache2/mods-enabled  
 # ln -s /etc/apache2/mods-available/proxy_http.load /etc/apache2/mods-enabled  
 # touch /etc/apache2/sites-available/proxyhost  
   
 <VirtualHost *:80>  
   
 ServerName system.name  
   
     DocumentRoot /var/www  
     <Directory />  
         Options FollowSymLinks  
         AllowOverride None  
     </Directory>  
   
   ProxyPreserveHost On  
   ProxyRequests off  
   ProxyPass /pwm http://ip.address:8080/pwm  
   ProxyPassReverse /pwm http://ip.address/pwm  
   
 </VirtualHost>  
   
 # /etc/init.d/apache2 restart  
   

No comments: