You have more problems than just getting to the admin page. If you
cannot access the admin page, users will not be able to access the
services provided by GeoServer either. This is not a GeoServer problem;
it is a general web services administration problem.
Your problem is likely that your hosting provider is blocking incoming
connections to port 8080/tcp. This is a good practice. Even if they
could get to it, you should really be providing service on the default
port 80/tcp. Tomcat cannot list on port 80/tcp, as it runs as a non-root
user for security purposes. (You did not say that you are using tomcat;
this is my assumption.)
One standard solution is to use Apache Web Server (HTTPD) as a front-end
service running on port 80, connected as a proxy to Tomcat using the AJP
protocol on port 8009. This will allow you to make your GeoServer appear
to be on port 80 with any path. (You can also use http proxying but ajp
gives tomcat more information, such as the client ip address.)
Try this:
(1) Install and enable Apache Web Server. You will find its
configuration files in /etc/httpd on CentOS. If it is not installed:
yum install httpd
(2) Enable mod_proxy in /etc/httpd/conf/httpd.conf with:
LoadModule proxy_module modules/mod_proxy.so
(3) Configure AJP proxying by making a file
/etc/httpd/conf.d/geoserver.conf containing:
ProxyPreserveHost On
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /geoserver ajp://localhost:8009/geoserver
ProxyPassReverse /geoserver http://mydomain.example.com/geoserver
(4) Enable AJP in tomcat by editing /etc/tomcat6/server.xml to uncomment
the line (remove the lines with <!-- and -->):
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
(5) Restart tomcat6 with:
service tomcat6 restart
(6) Restart apache with:
service httpd restart
Now try with your web browser accessing:
http://mydomain.example.com/geoserver
Further reading:
http://www.humboldt.co.uk/2009/02/the-mystery-of-proxypassreverse.html
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html
Kind regards,
Ben.
On 08/04/13 13:42, KhunSanAung wrote:
> Hi All,
>
> I have installed the GeoServer on a production server (CentOS)..
>
> I'm using SSH to access to the server (no GUI).
>
> My question is:
> In order to access to the GeoServer admin web interface and publish the
> maps for public, How can I configure my Apache Web Server in order to
> access to *http://localhost:8080/geoserver *remotely?
> E.g. http://mydomain.com/geoserver
>
> Could you please guide me for this.
>
> Thank you very much in advance
>
> Best regards
>
> --
>
> *Mr. Khun San Aung*<http://themimu.info/>
>
> _<http://geoportal.icimod.org/>___
--
Ben Caradoc-Davies <[email protected]>
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users