Apache2 从Internet Ubuntu服务器14.04.1访问地理服务器
我正在使用Ubuntu服务器14.04.1在IBM服务器上安装geoserver,我尝试在/etc/apache2/sites available/geoserver.conf中创建一个文件,其中的信息是:Apache2 从Internet Ubuntu服务器14.04.1访问地理服务器,apache2,tomcat7,geoserver,ubuntu-14.04,Apache2,Tomcat7,Geoserver,Ubuntu 14.04,我正在使用Ubuntu服务器14.04.1在IBM服务器上安装geoserver,我尝试在/etc/apache2/sites available/geoserver.conf中创建一个文件,其中的信息是: ProxyRequests关闭 代理主机 命令拒绝,允许 通融 ProxyPass/geoserver“http://localhost:8080/geoserver" ProxyPassReverse/geoserver“http://localhost:8080/geoserver“ 我
ProxyRequests关闭
代理主机
命令拒绝,允许
通融
ProxyPass/geoserver“http://localhost:8080/geoserver"
ProxyPassReverse/geoserver“http://localhost:8080/geoserver“
我通过NO-IP中的子域访问我的服务器,但是我不能让它在geoserver中工作,就像这样;my.subdomain.com/geoserver
A会提供你需要的任何信息,我真的需要一些帮助
谢谢。经过大量的研究和尝试,我知道我应该把这句话放在哪里,为GeoServer公共数据访问设置ProxyPass:
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /geoserver "http://localhost:8080/geoserver"
ProxyPassReverse /geoserver "http://localhost:8080/geoserver"
但由于我使用的是apache2服务器而不是httpd服务器,因此使用ProxyPass的代码必须放在文件000-default.conf中,并且路由为:
/etc/apache2/sites available/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>
“一些代码和注释”
代理请求关闭
代理主机
命令拒绝,允许
通融
ProxyPass/geoserver“http://localhost:8080/geoserver"
ProxyPassReverse/geoserver“http://localhost:8080/geoserver"
希望这有帮助
你从我身上看到的任何错误都可以发表评论
大家好。Hi Diego,我也有同样的问题,我尝试了你的代码,但没有工作。我在本地主机上有tomcat 8:8080,在本地主机上有Apache 2,在本地主机上有geoserver:8080/geoserver/。我想在Ubuntu 16.4中使用geoserver链接作为本地主机/geoserver。我不知道我有什么问题“内部服务器错误即将到来500”.Thank请您发布服务器上的日志,看看为什么会出现500个错误。apache日志。您是否在该方向创建了主机,localhost/geoserver?感谢diego的回复,我的问题解决了一些启用了http的代理。谢谢
<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>