Changes between Version 118 and Version 119 of GIS/InstallationGuidelines/Linux
- Timestamp:
- 02/18/11 22:21:00 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GIS/InstallationGuidelines/Linux
v118 v119 127 127 echo 'JRE_HOME="/usr/lib/jvm/java-6-sun/jre"' >> /etc/environment 128 128 129 #apt-get install -y libapache2-mod-jk130 #a2enmod jk131 #vim /etc/libapache2-mod-jk/workers.properties132 #workers.tomcat_home=/usr/share/tomcat6133 #workers.java_home=/usr/lib/jvm/java-6-sun134 135 129 # http://docs.geoserver.org/latest/en/user/production/container.html#optimize-your-jvm 136 130 vim /etc/default/tomcat6 … … 141 135 142 136 vim /etc/tomcat6/server.xml 143 # Uncomment these lines (& add the connectionTimeout)144 <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="o n" />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" /> 146 140 147 141 /etc/init.d/tomcat6 restart … … 170 164 a2enmod proxy 171 165 a2enmod proxy_ajp 172 a2enmod proxy_http173 a2enmod rewrite174 175 vim /etc/apache2/mods-enabled/proxy.conf176 #within <Proxy *> and </Proxy>177 Deny from all178 Allow from localhost179 166 180 167 vim /etc/apache2/sites-available/geo … … 184 171 DocumentRoot /var/www 185 172 186 <Proxy ajp://localhost:8009>187 ProxySet keepalive=On timeout=15 ttl=60188 </Proxy>189 173 ProxyPreserveHost on 190 RewriteEngine On191 174 # These 2 lines should be disabled in Production 192 RewriteRule ^/geoserver/(.*)$ ajp://localhost:8009/geoserver/$1 [P]175 ProxyPass /geoserver/ ajp://localhost:8009/geoserver/ 193 176 ProxyPassReverse /geoserver ajp://localhost:8009/geoserver/ 194 177 # 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 196 179 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 198 181 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 200 183 ProxyPassReverse /geoserver/wms ajp://localhost:8009/geoserver/wms/ 201 184