[GIS] avoid setting up a proxy for GeoServer, Apache

apachegeoserverPROXY

I'm using Apache (port 80) and GeoServer (port 8080) on Windows 7. I guess I need to set up a proxy if I want to use WFS, since they're on different ports.

My kind of silly question is, can I avoid it? If I re-set my website on GeoServer's www file, is everything going to work fine? Does GeoServer share the same characteristics with Apache?

If GeoServer's www file is a bad idea can you please help me set up a proxy? I never done it before, so if you have a link with an analytical tutorial, it would be great…

Best Answer

I assume that your Apache is on port 80 and your Geoserver is on the same machine on port 8080.

I would suggest that you set up a reverse proxy on your Apache server. On my server I have set up Apache to resolve http://example.com/geoserver to http://example.com:8080/

That way I can just use the wms link as http://example.com/geoserver/wms & I don't need to use a proxy.cgi file.

You can see this Post on how to set Apache to route to another port using Virtual Hosts.