Access Geoserver From Internet Ubuntu Server 14.04.1

一个人想着一个人 提交于 2019-12-25 03:26:40

问题


i'm triying to getup geoserver on IBM Server with Ubuntu Server 14.04.1, i have try making a file in /etc/apache2/sites-available/geoserver.conf and the information in it was:

ProxyRequests Off ProxyPreserveHost On <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass /geoserver "http://localhost:8080/geoserver" ProxyPassReverse /geoserver "http://localhost:8080/geoserver"

I access to my server via a subdomain in NO-IP, but a i can't make it work the geoserver, like this; my.subdomain.com/geoserver

A will give any information you need, i really need some help with this.

Thanks.


回答1:


Well after a lot of research and try lot of things, I understood where I have to put this lines, to set up ProxyPass for GeoServer public data access:

ProxyRequests Off 
ProxyPreserveHost On 
<Proxy *>
        Order deny,allow 
        Allow from all
</Proxy> 
ProxyPass /geoserver "http://localhost:8080/geoserver" 
ProxyPassReverse /geoserver "http://localhost:8080/geoserver"

In almost every tutorial that I read, they all explain how to access via internet to GeoServer, using httpd sever, where you have to add the lines of ProxyPass in the archive httpd.conf, in the route:

/etc/httpd/conf/httpd.conf

But since I'm using apache2 server instead of the httpd server, the code to use ProxyPass must be put in in the file 000-default.conf and the route is:

/etc/apache2/sites-avaible/000-default.conf

The code have to be between the labels:

<VirtualHost *:80>
         "some code and comments"
         ProxyRequests Off
         ProxyPreserveHost On
         <Proxy *>
              Order deny,allow
              Allow from all
         </Proxy>
         ProxyPass /geoserver "http://localhost:8080/geoserver"
         ProxyPassReverse /geoserver "http://localhost:8080/geoserver"
</VirtualHost>

Hope this helps.

Any errors you see from me feel free to comment.

Greetings to all.



来源:https://stackoverflow.com/questions/25490051/access-geoserver-from-internet-ubuntu-server-14-04-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!