RH80下APACHE的设置问题

由 seo 在 10-14-2002 13:03 发表:

RH80下APACHE的设置问题

小弟是菜鸟一只,近日玩RH,想自己用自己的机器试做WEB,结果安装完APACHE,简单设置了HTTPD.CONF后出现以下问题:

1.自己可以访问自己的站点,但是只有在设置的WEB根目录下即/usr/local/apache/htdocs下,其子目录的网页无法访问,出现PERMITION DENIED。

(ROOT也一样)

2.其他机器无法访问,出现超时的问题(是否是防火墙的问题?是的话如何设置?不是的话原因是什么?)

3.如何让httpd在开机时候自己加载?我在SETUP->SYSTEM下没有看到有httpd项。

谢谢各位大侠提携~~!!

p.s:httpd.conf文件,注释我已经去掉了

ServerType standalone

ServerRoot "/usr/local/apache"

PidFile /usr/local/apache/logs/httpd.pid

ScoreBoardFile

KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 15

StartServers 5

MaxClients 150

MaxRequestsPerChild 0

Port 80

User nobody

Group nobody

ServerAdmin [email protected]

ServerName 202.198.78.188

DocumentRoot "/usr/local/apache/htdocs"

1<directory apache="" htdocs="" local="" usr="">   
2  
3Options FollowSymLinks   
4  
5AllowOverride none   
6  
7</directory>
 1<directory "="" apache="" htdocs"="" local="" usr="">   
 2  
 3Options Indexes FollowSymLinks MultiViews   
 4  
 5AllowOverride None   
 6  
 7Order allow,deny   
 8  
 9Allow from all   
10  
11</directory>
1<ifmodule mod_userdir.c="">   
2  
3UserDir public_html   
4  
5</ifmodule>
1<ifmodule mod_dir.c="">   
2  
3DirectoryIndex index.htm   
4  
5</ifmodule>

AccessFileName .htaccess

1<files "^\\.ht"="" ~="">   
2  
3Order allow,deny   
4  
5Deny from all   
6  
7Satisfy All   
8  
9</files>

UseCanonicalName On

1<ifmodule mod_mime.c="">   
2  
3TypesConfig /usr/local/apache/conf/mime.types   
4  
5</ifmodule>

DefaultType text/plain

1<ifmodule mod_mime_magic.c="">   
2  
3MIMEMagicFile /usr/local/apache/conf/magic   
4  
5</ifmodule>

HostnameLookups Off

ErrorLog /usr/local/apache/logs/error_log

LogLevel warn

LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined

LogFormat "%h %l %u %t "%r" %>s %b" common

LogFormat "%{Referer}i -> %U" referer

LogFormat "%{User-agent}i" agent

CustomLog /usr/local/apache/logs/access_log common

ServerSignature On

 1<ifmodule mod_alias.c="">   
 2  
 3Alias /icons/ "/usr/local/apache/icons/"   
 4  
 5<directory "="" apache="" icons"="" local="" usr="">   
 6  
 7Options Indexes MultiViews   
 8  
 9AllowOverride None   
10  
11Order allow,deny   
12  
13Allow from all   
14  
15</directory>   
16  
17Alias /manual/ "/usr/local/apache/htdocs/manual/"   
18  
19  
20  
21<directory "="" apache="" htdocs="" local="" manual"="" usr="">   
22  
23Options Indexes FollowSymlinks MultiViews   
24  
25AllowOverride None   
26  
27Order allow,deny   
28  
29Allow from all   
30  
31</directory>   
32  
33ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"   
34  
35<directory "="" apache="" cgi-bin"="" local="" usr="">   
36  
37AllowOverride None   
38  
39Options None   
40  
41Order allow,deny   
42  
43Allow from all   
44  
45</directory>
46</ifmodule>
 1<ifmodule mod_autoindex.c="">   
 2  
 3IndexOptions FancyIndexing   
 4  
 5AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip   
 6  
 7  
 8  
 9AddIconByType (TXT,/icons/text.gif) text/*   
10  
11AddIconByType (IMG,/icons/image2.gif) image/*   
12  
13AddIconByType (SND,/icons/sound2.gif) audio/*   
14  
15AddIconByType (VID,/icons/movie.gif) video/*   
16  
17AddIcon /icons/binary.gif .bin .exe   
18  
19AddIcon /icons/binhex.gif .hqx   
20  
21AddIcon /icons/tar.gif .tar   
22  
23AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv   
24  
25AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip   
26  
27AddIcon /icons/a.gif .ps .ai .eps   
28  
29AddIcon /icons/layout.gif .html .shtml .htm .pdf   
30  
31AddIcon /icons/text.gif .txt   
32  
33AddIcon /icons/c.gif .c   
34  
35AddIcon /icons/p.gif .pl .py   
36  
37AddIcon /icons/f.gif .for   
38  
39AddIcon /icons/dvi.gif .dvi   
40  
41AddIcon /icons/uuencoded.gif .uu   
42  
43AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl   
44  
45AddIcon /icons/tex.gif .tex   
46  
47AddIcon /icons/bomb.gif core   
48  
49AddIcon /icons/back.gif ..   
50  
51AddIcon /icons/hand.right.gif README   
52  
53AddIcon /icons/folder.gif ^^DIRECTORY^^   
54  
55AddIcon /icons/blank.gif ^^BLANKICON^^   
56  
57DefaultIcon /icons/unknown.gif   
58  
59ReadmeName README   
60  
61HeaderName HEADER   
62  
63IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t   
64  
65</ifmodule>
 1<ifmodule mod_mime.c="">   
 2  
 3AddEncoding x-compress Z   
 4  
 5AddEncoding x-gzip gz tgz   
 6  
 7AddLanguage da .dk   
 8  
 9AddLanguage nl .nl   
10  
11AddLanguage en .en   
12  
13AddLanguage et .ee   
14  
15AddLanguage fr .fr   
16  
17AddLanguage de .de   
18  
19AddLanguage el .el   
20  
21AddLanguage he .he   
22  
23AddCharset ISO-8859-8 .iso8859-8   
24  
25AddLanguage it .it   
26  
27AddLanguage ja .ja   
28  
29AddCharset ISO-2022-JP .jis   
30  
31AddLanguage kr .kr   
32  
33AddCharset ISO-2022-KR .iso-kr   
34  
35AddLanguage nn .nn   
36  
37AddLanguage no .no   
38  
39AddLanguage pl .po   
40  
41AddCharset ISO-8859-2 .iso-pl   
42  
43AddLanguage pt .pt   
44  
45AddLanguage pt-br .pt-br   
46  
47AddLanguage ltz .lu   
48  
49AddLanguage ca .ca   
50  
51AddLanguage es .es   
52  
53AddLanguage sv .sv</ifmodule>
Published At
Categories with 服务器类
Tagged with
comments powered by Disqus