首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从Internet Ubuntu服务器访问Geoserver 14.04.1

从Internet Ubuntu服务器访问Geoserver 14.04.1
EN

Stack Overflow用户
提问于 2014-08-25 16:10:52
回答 1查看 1.5K关注 0票数 0

我正在尝试使用UbuntuServer14.04.1在IBM Server上安装geoserver,我尝试在/etc/apache2/site中创建一个文件--可获得/Geoerver.conf,其中的信息如下:

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

我通过非IP中的子域访问我的服务器,但是我不能让它像这样运行geoserver;my.subdomain.com/geoserver

A会给出你需要的任何信息,我真的需要一些帮助。

谢谢。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-08-28 01:25:56

在进行了大量的研究和尝试之后,我明白了我必须把这一行放在哪里,来为GeoServer公共数据访问设置GeoServer:

代码语言:javascript
复制
ProxyRequests Off 
ProxyPreserveHost On 
<Proxy *>
        Order deny,allow 
        Allow from all
</Proxy> 
ProxyPass /geoserver "http://localhost:8080/geoserver" 
ProxyPassReverse /geoserver "http://localhost:8080/geoserver"

在我读过的几乎每一篇教程中,它们都解释了如何使用httpd服务器通过互联网访问GeoServer,在这种情况下,您必须在归档httpd.conf中添加路线中的ProxyPass行:

代码语言:javascript
复制
/etc/httpd/conf/httpd.conf

但是,由于我使用的是apache2服务器而不是httpd服务器,所以必须将使用ProxyPass的代码放在文件000-default.conf中,并且路由是:

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

代码必须在标签之间:

代码语言:javascript
复制
<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>

希望这能有所帮助。

你从我这里看到的任何错误都可以随意评论。

向大家问好。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25490051

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档