问题描述
我正在尝试在具有Ubuntu Server 14.04.1的IBM Server上获取Geoserver,我尝试在/etc/apache2/sites-available/geoserver.conf中制作一个文件,并且其中的信息是:
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 OffProxyPreserveHost On<Proxy *> Order deny,allow Allow from all</Proxy>ProxyPass /geoserver "http://localhost:8080/geoserver"ProxyPassReverse /geoserver "http://localhost:8080/geoserver"
ProxyRequests OffProxyPreserveHost On<Proxy *> Order deny,allow Allow from all</Proxy>ProxyPass /geoserver "http://localhost:8080/geoserver"ProxyPassReverse /geoserver "http://localhost:8080/geoserver"
我可以通过NO-IP中的子域访问我的服务器,但是我无法使其在地理服务器上正常工作,就像这样; my.subdomain.com/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会提供您需要的任何信息,我真的需要一些帮助.
A will give any information you need, i really need some help with this.
谢谢.
推荐答案
经过大量研究并尝试了许多事情之后,我了解到我必须在这行内容中设置用于设置GeoServer公共数据访问的ProxyPass的地方:
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"
在我阅读的几乎所有教程中,他们都解释了如何使用httpd服务器通过Internet访问GeoServer,在该方法中,您必须在以下路径中将ProxyPass行添加到存档httpd.conf中:
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
但是,由于我使用的是apache2服务器而不是httpd服务器,因此必须将使用ProxyPass的代码放入文件000-default.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
/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>
希望这会有所帮助.
您发现我遇到的任何错误都可以发表评论.
Any errors you see from me feel free to comment.
向所有人致意.
这篇关于从Internet Ubuntu Server 14.04.1访问Geoserver的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!