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

由 gamehero 在 04-29-2004 15:42 发表:

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

如题!

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

请大侠留下QQ号!


由 hiweed 在 04-29-2004 15:54 发表:


RH 我不熟悉,我只知道 Debian 的 Apache 安装完后,Documentroot 是 /var/www

你可以找找他的 httpd.conf ,看看是怎么设置的。

updatedb

locate httpd.conf


我就是原来的 kanaka

http://linux.hiweed.com


由 gamehero 在 04-29-2004 16:04 发表:


[root@GAMEHERO /]# ls /var/www

cgi-bin error html icons manual nut-cgi-bin wordtrans


由 gamehero 在 04-29-2004 16:05 发表:


我很菜的,不知道httpd.conf在哪里啊


由 冰箱 在 04-29-2004 16:09 发表:


RH9 默认的html在 /var/www/html 下

httpd.conf 在/etc/httpd/conf 下


所有人不许动,把手举起来。我是菜鸟!


由 gamehero 在 04-30-2004 16:43 发表:


/var/www/html下面只有两个文件夹:

[root@GAMEHERO /]# ls /var/www/html

mrtg usage

===================================================

是哪个?


由 gamehero 在 04-30-2004 16:46 发表:


为什么

在/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 顶端


由 冰箱 在 04-30-2004 21:42 发表:


> quote: > > * * * > > 最初由 gamehero 发表
>
> **/var/www/html下面只有两个文件夹:
>
>
>
> [root@GAMEHERO /]# ls /var/www/html
>
> mrtg usage
>
> ===================================================
>
> 是哪个? ** > > * * *

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

这个在httpd.conf 中由DocumentRoot参数设定


所有人不许动,把手举起来。我是菜鸟!


由 冰箱 在 04-30-2004 21:43 发表:


> quote: > > * * * > > 最初由 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 顶端 ** > > * * *

并不全是注释吧,仔细看看!


所有人不许动,把手举起来。我是菜鸟!


由 shiquan 在 05-01-2004 02:00 发表:


我在Redhat 10下也是相同的问题,老师只能看测试页!

郁闷!

_

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus