LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 573|回复: 3

求助!!请高手帮帮我!!!

[复制链接]
发表于 2003-5-25 18:21:26 | 显示全部楼层 |阅读模式
我在linux9。0做web 服务器的时候,已经设置好域名了,
www.1.com
我指定好存放主页的位置。DocumentRoot /var/www/html
但是我的主页文件放在/var/www/html下了
但是我输入我www.1.com 的时候无法找到!!
请问是怎么回事,是不是我主页放错了!!!
发表于 2003-5-25 20:58:38 | 显示全部楼层
先配置好httpd.conf文件
 楼主| 发表于 2003-5-25 21:51:07 | 显示全部楼层
我已经配置了1次了,不成功!你能把你的给我看看吗/?
发表于 2003-5-25 22:27:10 | 显示全部楼层

我觉得就这两点设好了应该没问题,除非你的网络设置有问题

1.
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work.  See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.
#
ServerName www.embaby.3322.org:80 =>你的网站域名

2.
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "F:/htdocs" =>你主页存放的目录
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表