Changes between Version 118 and Version 119 of GIS/InstallationGuidelines/Linux


Ignore:
Timestamp:
02/18/11 22:21:00 (11 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GIS/InstallationGuidelines/Linux

    v118 v119  
    127127echo 'JRE_HOME="/usr/lib/jvm/java-6-sun/jre"' >> /etc/environment
    128128
    129 #apt-get install -y libapache2-mod-jk
    130 #a2enmod jk
    131 #vim /etc/libapache2-mod-jk/workers.properties
    132 #workers.tomcat_home=/usr/share/tomcat6
    133 #workers.java_home=/usr/lib/jvm/java-6-sun
    134 
    135129# http://docs.geoserver.org/latest/en/user/production/container.html#optimize-your-jvm
    136130vim /etc/default/tomcat6
     
    141135
    142136vim /etc/tomcat6/server.xml
    143 # Uncomment these lines (& add the connectionTimeout)
    144 <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
    145 <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" connectionTimeout="60000" />
     137# Uncomment these lines (& add the extra options)
     138<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="off" />
     139<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" emptySessionPath="true" enableLookups="false" maxThreads="256" connectionTimeout="45000" />
    146140
    147141/etc/init.d/tomcat6 restart
     
    170164a2enmod proxy
    171165a2enmod proxy_ajp
    172 a2enmod proxy_http
    173 a2enmod rewrite
    174 
    175 vim /etc/apache2/mods-enabled/proxy.conf
    176 #within <Proxy *> and </Proxy>
    177     Deny from all
    178     Allow from localhost
    179166
    180167vim /etc/apache2/sites-available/geo
     
    184171  DocumentRoot /var/www
    185172
    186   <Proxy ajp://localhost:8009>
    187     ProxySet keepalive=On timeout=15 ttl=60
    188   </Proxy>
    189173  ProxyPreserveHost on
    190   RewriteEngine On
    191174  # These 2 lines should be disabled in Production
    192   RewriteRule ^/geoserver/(.*)$ ajp://localhost:8009/geoserver/$1 [P]
     175  ProxyPass /geoserver/ ajp://localhost:8009/geoserver/
    193176  ProxyPassReverse /geoserver ajp://localhost:8009/geoserver/
    194177  # These lines should be enabled in Production
    195   RewriteRule ^/geoserver/gwc ajp://localhost:8009/geoserver/gwc [P]
     178  ProxyPass /geoserver/ ajp://localhost:8009/geoserver/gwc
    196179  ProxyPassReverse /geoserver/gwc ajp://localhost:8009/geoserver/gwc
    197   RewriteRule ^/geoserver/wfs ajp://localhost:8009/geoserver/wfs [P]
     180  ProxyPass /geoserver/ ajp://localhost:8009/geoserver/wfs
    198181  ProxyPassReverse /geoserver/wfs ajp://localhost:8009/geoserver/wfs
    199   RewriteRule ^/geoserver/wms ajp://localhost:8009/geoserver/wms/ [P]
     182  ProxyPass /geoserver/ ajp://localhost:8009/geoserver/wms
    200183  ProxyPassReverse /geoserver/wms ajp://localhost:8009/geoserver/wms/
    201184