Book Image

GeoServer Beginner's Guide - Second Edition

By : Stefano Iacovella
Book Image

GeoServer Beginner's Guide - Second Edition

By: Stefano Iacovella

Overview of this book

GeoServer is an opensource server written in Java that allows users to share, process, and edit geospatial data. This book will guide you through the new features and improvements of GeoServer and will help you get started with it. GeoServer Beginner's Guide gives you the impetus to build custom maps using your data without the need for costly commercial software licenses and restrictions. Even if you do not have prior GIS knowledge, you will be able to make interactive maps after reading this book. You will install GeoServer, access your data from a database, and apply style points, lines, polygons, and labels to impress site visitors with real-time maps. Then you follow a step-by-step guide that installs GeoServer in minutes. You will explore the web-based administrative interface to connect to backend data stores such as PostGIS, and Oracle. Going ahead, you can display your data on web-based interactive maps, use style lines, points, polygons, and embed images to visualize this data for your web visitors. You will walk away from this book with a working application ready for production. After reading GeoServer Beginner's Guide, you will be able to build beautiful custom maps on your website using your geospatial data.
Table of Contents (20 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
Index

Setting a proxy


Whether you are using GeoServer on Tomcat or you used the Windows installer that incorporates a Jetty instance, it is not a good idea to expose it directly to your users, especially if they are on the internet. A safer option is to use a more stable web server, such as Apache HTTPD--one of the most popular and widely used web servers across the web. To expose GeoServer, or more generally, a Java application from the web server, you need to set a proxy on the web server. Users will point to an alias and their requests will be redirected to Tomcat, more safely deployed in a protected LAN.

We will configure the Apache HTTP web server to act as a proxy for GeoServer. First of all, we need to get it working; you will learn that, just like many other open source projects, this is surprisingly simple! Perform the following steps:

  1. To install Apache on Linux, you can use the distribution repository. At the time of writing, it installs release 2.4.18 for Linux Mint:
$ sudo apt-get install...