| 134 | | |
| | 134 | Enable access to !GeoServer on Port 80: |
| | 135 | {{{ |
| | 136 | a2enmod proxy |
| | 137 | a2enmod proxy_http |
| | 138 | vim /etc/apache2/sites-available/geo |
| | 139 | <VirtualHost *:80> |
| | 140 | ServerName geo.eden.sahanafoundation.org |
| | 141 | ServerAdmin webmaster@sahanafoundation.org |
| | 142 | DocumentRoot /var/www |
| | 143 | |
| | 144 | ProxyPreserveHost on |
| | 145 | RewriteEngine On |
| | 146 | RewriteRule ^/geoserver/wfs ajp://localhost:8009/geoserver/wfs [P] |
| | 147 | ProxyPassReverse /geoserver/wfs ajp://localhost:8009/geoserver/wfs |
| | 148 | RewriteRule ^/geoserver/wms ajp://localhost:8009/geoserver/wms/ [P] |
| | 149 | ProxyPassReverse /geoserver/wms ajp://localhost:8009/geoserver/wms/ |
| | 150 | RewriteRule ^/geowebcache/(.*)$ ajp://localhost:8009/geowebcache/$1 [P] |
| | 151 | ProxyPassReverse /geowebcache ajp://localhost:8009/geowebcache/ |
| | 152 | |
| | 153 | ErrorLog /var/log/apache2/geo_error.log |
| | 154 | LogLevel warn |
| | 155 | CustomLog /var/log/apache2/geo_access.log combined |
| | 156 | </VirtualHost> |
| | 157 | |
| | 158 | a2ensite geo |
| | 159 | /etc/init.d/apache2 restart |
| | 160 | }}} |