LinuxSir.cn,穿越时空的Linuxsir!

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

用RH9.0安装盘装了Apache,不知道默认的web目录在哪,求助!

[复制链接]
发表于 2004-4-29 15:42:49 | 显示全部楼层 |阅读模式
如题!

想改的话应该在哪里改呢?

请大侠留下QQ号!
发表于 2004-4-29 15:54:34 | 显示全部楼层
RH 我不熟悉,我只知道 Debian 的 Apache 安装完后,Documentroot 是 /var/www
你可以找找他的 httpd.conf ,看看是怎么设置的。

# updatedb
# locate httpd.conf
 楼主| 发表于 2004-4-29 16:04:05 | 显示全部楼层
[root@GAMEHERO /]# ls /var/www
cgi-bin  error  html  icons  manual  nut-cgi-bin  wordtrans
 楼主| 发表于 2004-4-29 16:05:09 | 显示全部楼层
我很菜的,不知道httpd.conf在哪里啊
发表于 2004-4-29 16:09:38 | 显示全部楼层
RH9 默认的html在 /var/www/html 下
httpd.conf 在/etc/httpd/conf 下
 楼主| 发表于 2004-4-30 16:43:24 | 显示全部楼层
/var/www/html下面只有两个文件夹:

[root@GAMEHERO /]# ls /var/www/html
mrtg  usage
===================================================
是哪个?
 楼主| 发表于 2004-4-30 16:46:24 | 显示全部楼层
为什么
在/etc/httpd/conf 下的httpd.conf显示的都是注释的代码?
====================================================
[root@GAMEHERO /]# vi /etc/httpd/conf/httpd.conf

## httpd.conf - configuration for the Apache web server
#
# Generated automatically... if you edit manually, the changes will be lost
# the next time you run "apacheconfig".
#
                                                                                
### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
"/etc/httpd/conf/httpd.conf" [noeol][已转换] 993L, 30066C     1,0-1        顶端
发表于 2004-4-30 21:42:37 | 显示全部楼层
最初由 gamehero 发表
/var/www/html下面只有两个文件夹:

[root@GAMEHERO /]# ls /var/www/html
mrtg  usage
===================================================
是哪个?


mrtg和usage只是子目录而已。RH9默认的主目录就是/var/www/html/

这个在httpd.conf 中由DocumentRoot参数设定
发表于 2004-4-30 21:43:55 | 显示全部楼层
最初由 gamehero 发表
为什么
在/etc/httpd/conf 下的httpd.conf显示的都是注释的代码?
====================================================
[root@GAMEHERO /]# vi /etc/httpd/conf/httpd.conf

## httpd.conf - configuration for the Apache web server
#
# Generated automatically... if you edit manually, the changes will be lost
# the next time you run "apacheconfig".
#
                                                                                
### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
"/etc/httpd/conf/httpd.conf" [noeol][已转换] 993L, 30066C     1,0-1        顶端

并不全是注释吧,仔细看看!
发表于 2004-5-1 02:00:32 | 显示全部楼层
我在Redhat 10下也是相同的问题,老师只能看测试页!
郁闷!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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