[英]Accessing Apache Server from a remote machine
我正在使用Red Hat 4.4.7-4。 我已经使用安装了Apache服务器
百胜安装httpd
/etc/init.d/httpd开始
/etc/init.d/httpd状态httpd(pid 1371)正在运行...
可以使用ssh终端通过VPN客户端访问本机。 当我打
http://ip address:80
在浏览器中,页面不会加载。 我收到以下错误:
This Page Cannot Be Displayed
The system cannot communicate with the external server ( 173.39.232.226 ). The Internet server may be busy, may be permanently down, or may be unreachable because of network problems.
Please check the spelling of the Internet address entered. If it is correct, try this request later.
If you have questions, or feel this is an error, please contact your corporate network administrator and provide the codes shown below.
Notification codes: (1, GATEWAY_TIMEOUT, 173.39.232.226)
另外,下面是iptables的输出
[root@blended-services-demo html]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT tcp -- anywhere anywhere tcp dpt:http
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
由于当前被iptables阻止,因此probalby需要启用对端口80的服务器的访问。
sudo /sbin/iptables -I INPUT -p tcp -m tcp --dport 80 -j ACCEPT
这将在开始时将规则插入到iptables配置中。 完成此步骤并测试其是否可以正常工作后,您应该保存配置,以便下次服务启动时可以使用该配置,
sudo /sbin/service iptables save
这会将当前配置写入/ etc / sysconfig / iptables。
如果这不能解决您的问题,我建议您在这里看看: apache不接受来自本地主机的传入连接
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.