主题:  apache已经装上了 本地能浏览了 为什么局域网不能访问阿

5D平平

职务:管理员
等级:7
金币:20.0
发贴:5264
#12004/7/3 17:56:14
我是初学者 刚装的是redhat9
apache都是系统自己装上去的 简单的设置一下
打开了服务器 启动了httpd
127.0.0.1能访问了
自己的ip 192.168.11.13 也能访问了
虚拟主机名为ecm
但是http://ecm/不能访问
还有就是局域网里面的其他机器用http://192.168.11.13/和http://ecm/都不能访问
为什么呢?百思不解阿!!



5D平平

职务:管理员
等级:7
金币:20.0
发贴:5264
#22004/7/5 13:03:56
当然设置了阿
而且改了
etc/hosts文件 加了
192.168.11.13 ecm
还是不行
可能是防火墙



Mike

职务:版主
等级:6
金币:11.0
发贴:5148
#32004/7/5 15:58:05
开始->运行->CMD->ping ecm
get IP (example: 192.168.0.233)

go to httpd.conf
....
....

# ServerName allows you to set a host name which is sent back to clients for
# your server if it's different than the one the program would get (i.e., use
# "www" instead of the host's real name).
#
# Note: You cannot just invent host names and hope they work. The name you
# define here must be a valid DNS name for your host. If you don't understand
# this, ask your network administrator.

# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address (e.g., 123.45.67.89/)
# anyway, and this will make redirections work in a sensible way.
#
# 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your
# machine always knows itself by this address. If you use Apache strictly for
# local testing and development, you may use 127.0.0.1 as the server name.
#
ServerName 192.168.0.233
去掉ecm

编辑历史:[此帖最近一次被 iamdaijun 编辑过(编辑时间:2004-07-05 16:03:14)]


5D平平

职务:管理员
等级:7
金币:20.0
发贴:5264
#42004/7/8 13:38:33
问题解决了 防火墙关了就好了