无法通过UBUNTU 12.10上的本地IP地址访问Web服务器 [英] Cannot access to web server via local IP address on UBUNTU 12.10

查看:572
本文介绍了无法通过UBUNTU 12.10上的本地IP地址访问Web服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我在我的开发机器上安装了Ubuntu 12.10。我也安装了apache 2.2&
Php 5.3.8和Php 5.2.17和MySQL。一切正常,我可以浏览我的网站和项目127.0.0.1& Localhost关键字和主机名但我无法通过本地IP地址(192.168.1.5)访问我的站点或Apache Web服务器。
我用Ubuntu 11.10在笔记本电脑上运行这个模型,可以通过192.168.1.x访问。

Recently I've install Ubuntu 12.10 on my dev machine. also I've installed apache 2.2 & Php 5.3.8 and Php 5.2.17 and MySQL. Everything works fine and I can browses my sites and projects via 127.0.0.1 & Localhost keyword and Hostname But I cannot access my sites or Apache web server via Local ip address (192.168.1.5). I run this model on Laptop with Ubuntu 11.10 and can access via 192.168.1.x.

你对这个问题有任何了解请让我来在这种情况下知道你的XP吗?

Do you have any idea about this issue please let me to know your XP in this case ?

感谢一百万关于你的病人...
Farzam。

thanks a million about your patient... Farzam.

推荐答案

也许你的Apache仅限于localhost。查看Apache配置文件
(httpd.conf)

Perhaps your Apache is bounded to localhost only. Look in your Apache configuration file (httpd.conf) for

Listen 127.0.0.1:80

并将其替换为:

Listen 80

Listen *:80

同时检查防火墙设置,看看对于同一文件中的以下行:

Also check the Firewall settings, look for a the line below in the same file:

Allow from 127.0.0.1

并尝试将其更改为:

Allow from all

这篇关于无法通过UBUNTU 12.10上的本地IP地址访问Web服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆