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.