Apache 可以访问wget站点,但不能从外部访问
我正在尝试使用Apache2作为反向代理在一台主机上设置Atlassian Confluence和JIRA 当我这样做的时候Apache 可以访问wget站点,但不能从外部访问,apache,jira,iptables,mod-proxy,confluence,Apache,Jira,Iptables,Mod Proxy,Confluence,我正在尝试使用Apache2作为反向代理在一台主机上设置Atlassian Confluence和JIRA 当我这样做的时候 wget http://localhost:8080 --2014-07-11 17:40:41-- http://localhost:8080/ Resolving localhost (localhost)... 127.0.0.1 Connecting to localhost (localhost)|127.0.0.1|:8080... connected. H
wget http://localhost:8080
--2014-07-11 17:40:41-- http://localhost:8080/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://localhost:8080/secure/MyJiraHome.jspa [following]
--2014-07-11 17:40:41-- http://localhost:8080/secure/MyJiraHome.jspa
Reusing existing connection to localhost:8080.
HTTP request sent, awaiting response... 302 Found
Location: http://localhost:8080/secure/Dashboard.jspa [following]
--2014-07-11 17:40:41-- http://localhost:8080/secure/Dashboard.jspa
Reusing existing connection to localhost:8080.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: âindex.html.7â
8090也是一样——它获取页面并下载。此外,wget也可以从外部服务器正常工作
但是,当试图通过浏览器访问它们时,只有:8090在使用IP时可访问,并且它们中的任何一个都不能通过域名访问
以下是我的apache2.conf的相关部分:
ServerName conf.site.com
<VirtualHost *:80>
ServerName conf.site.com
ServerAlias conf
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / `http://127.0.0.1:8090/`
ProxyPassReverse / `http://127.0.0.1:8090/`
另外,netstat-tulp显示80、8080和8090正在侦听:
tcp6 0 0 [::]:http [::]:* LISTEN 18312/apache2
tcp6 0 0 [::]:http-alt [::]:* LISTEN 4868/java
tcp6 0 0 [::]:8090 [::]:* LISTEN 3578/java
这对我来说似乎很奇怪,所以任何建议都将不胜感激。不久前解决了这个问题,但忘记发布了。问题是HTTP代理apache2模块由于某种原因没有打开 a2enmod代理服务器
成功了。请注意,ProxyPass行中没有“'”——出于某种原因,stackoverflow不允许我发布
127.0.0.1
如果没有它们,如果我是你,我可能会将此问题提交给Atlassian支持。也许你已经有了。
tcp6 0 0 [::]:http [::]:* LISTEN 18312/apache2
tcp6 0 0 [::]:http-alt [::]:* LISTEN 4868/java
tcp6 0 0 [::]:8090 [::]:* LISTEN 3578/java