[Geoserver-users] deploy layer on tomcat

hello experts

I have installed geoserver 2.4.1. The OS is windows 7, web server is Apache
Tomcat 7.
I have succesfully created workspace, store, layer (shape file) as per user
manual.
When I click "Open Layers" in Layer Preview, the map is opened.
How to host this as web application on tomcat so that it can be accessed
from other machines.

thanks

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/deploy-layer-on-tomcat-tp5085513.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi,
If you want it hosted within tomcat you can place it into the GeoServer directory. I think it’s www (I don’t have a GeoServer install here). Same place as the Layer Preview works from I suspect.
Typically though people have their webserver separate from tomcat.
Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

···

On 24 October 2013 06:52, masoodkhadri <masoodkhadri@anonymised.com> wrote:

hello experts

I have installed geoserver 2.4.1. The OS is windows 7, web server is Apache
Tomcat 7.
I have succesfully created workspace, store, layer (shape file) as per user
manual.
When I click “Open Layers” in Layer Preview, the map is opened.
How to host this as web application on tomcat so that it can be accessed
from other machines.

thanks


View this message in context: http://osgeo-org.1560.x6.nabble.com/deploy-layer-on-tomcat-tp5085513.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Masood,

once you installed Geoserver within Tomcat or Jetty is IS public. You can
reach it using the port 8080. Your firewall may prevent calling the port but
you can open it manually.
Unless you have installed it on another port. So the call is
http://yourserver.com:8080/geoserver.

If you want to make it public via port 80, you must install a webserver such
as Apache. (http://httpd.apache.org/). Please note: Apache has native code,
so there is a 32 and 64-bit version.

What you need to do is to tell Apache: If you get an address like
http://yourserver/geoserver please do not look for a static webpage but go
to port 8080 and call Geoserver there.
So, how do you do that?

Go to httpd.conf in the conf directory:

Uncomment:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so

I hope these are all the required ones....

Then you need to tell Apache somewhere below in the httpd.conf to proxy or
reverse proxy the address http://yourserver/geoserver to
http://yourserver:8080/geoserver.
In my case (Apache 2.4) the directive look like this:

ProxyRequests Off
ProxyPreserveHost On

<Proxy *>
    Order deny,allow
    Allow from all
</Proxy>

ProxyPass /geoserver http://localhost:8080/geoserver
ProxyPassReverse /geoserver http://localhost:8080/geoserver
<Location /geoserver>
    Order allow,deny
    Allow from all
</Location>

Hope that helps. Newest version is 2.4.6. Please look into the manual as
there may be some changes.

Cheers

Christian

-----
____________________________

Dr Christian Maul
Project Manager

Information Services Branch
Department Environment and Primary Industries
Level13, Marland House, 570 Bourke Street
Melbourne 3000

PO Box 500, East Melbourne Vic 3002

Telephone: +61-3-8636 2325
Telefax: +61-3-8636 2813
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/deploy-layer-on-tomcat-tp5085513p5086223.html
Sent from the GeoServer - User mailing list archive at Nabble.com.