LinuxSir.cn,穿越时空的Linuxsir!

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

apache问题

[复制链接]
发表于 2008-4-6 17:17:54 | 显示全部楼层 |阅读模式
刚在fc6中安装了一个apache。但是发布目录却有点让我搞不清楚。
我看了一些文章,发布的根目录是/usr/local/apache2/htdocs
但是我改了里面的index.html却什么变化都没有。后来发现我的发布目录是在/var/www/html。

另外我在http://wiki.apache.org/httpd/DistrosDefaultLayout
地址看到了fc的发布目录是/var/www/html,为什么我会有两个目录,难道fc默认安装的时候已经装了apache?
发表于 2008-4-6 17:46:10 | 显示全部楼层
/usr/local/apache2/htdocs好象只是服务本身自带的说明文档网页,安装成功能才能正常显示
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-6 18:27:39 | 显示全部楼层
/usr/local/apache2/htdocs目录下面有几个图片和一个index.html文件,html文件只有下面一行,就显示一个It works!
<html><body><h1>It works!</h1></body></html>

/var/www/html目录下面什么文件都没有,浏览器输入ip地址显示页面信息如下:
Fedora Core Test Page

This page is used to test the proper operation of the Apache HTTP server after it has been installed. If you can read this page, it means that the web server installed at this site is working properly, but has not yet been configured.
If you are a member of the general public:

The fact that you are seeing this page indicates that the website you just visited is either experiencing problems, or is undergoing routine maintenance.

If you would like to let the administrators of this website know that you've seen this page instead of the page you expected, you should send them e-mail. In general, mail sent to the name "webmaster" and directed to the website's domain should reach the appropriate person.

For example, if you experienced problems while visiting www.example.com, you should send e-mail to "webmaster@example.com".

For information on Fedora Core, please visit the Fedora Project website.
If you are the website administrator:

You may now add content to the directory /var/www/html/. Note that until you do so, people visiting your website will see this page, and not your content. To prevent this page from ever being used, follow the instructions in the file /etc/httpd/conf.d/welcome.conf.

You are free to use the images below on Apache and Fedora Core powered HTTP servers. Thanks for using Apache and Fedora Core!

[ Powered by Apache ] [ Powered by Fedora Core ]
回复 支持 反对

使用道具 举报

发表于 2008-4-7 15:22:16 | 显示全部楼层
你查一下默认有没有默认装apache不就得了么。。
回复 支持 反对

使用道具 举报

发表于 2008-4-7 21:35:32 | 显示全部楼层
在HTTPD。CONF里有发布的目录,自己改下任意的位置都行了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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