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

查看:27
本文介绍了无法通过 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 ?

感谢您的患者一百万...法尔扎姆.

thanks a million about your patient... Farzam.

推荐答案

也许您的 Apache 仅限于本地主机.查看您的 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天全站免登陆