我正在尝试使用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会给出你需要的任何信息,我真的需要一些帮助。
谢谢。
发布于 2014-08-28 01:25:56
在进行了大量的研究和尝试之后,我明白了我必须把这一行放在哪里,来为GeoServer公共数据访问设置GeoServer:
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行:
/etc/httpd/conf/httpd.conf但是,由于我使用的是apache2服务器而不是httpd服务器,所以必须将使用ProxyPass的代码放在文件000-default.conf中,并且路由是:
/etc/apache2/sites avaible/000-default.conf
代码必须在标签之间:
<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>希望这能有所帮助。
你从我这里看到的任何错误都可以随意评论。
向大家问好。
https://stackoverflow.com/questions/25490051
复制相似问题