技術討論區 > Linux 討論版

主機內個人網頁突然不能瀏覽

<< < (3/4) > >>

arthurt:
httpd.conf設定在下面,麻煩各位幫忙看一下,用現在的設定網頁出現如下訊息
You don't have permission to access / on this server.
個人網頁亦出現相同訊息
You don't have permission to access /~hbmsp/ on this server.
 我還是搞不定,已經想重慣ubuntu這個版本

問題出現前,我再看如何繁體中文不出現亂碼
但是我沒更改任何設定阿
繁體中文修正部分也是這次參考鳥哥的設定改的
突然變成這樣,令我懷疑是有駭客
麻煩各位交我一下吧

pippeng:
http://httpd.apache.org/docs/1.3/mod/mod_userdir.html

<IfModule mod_userdir.c>
     UserDir enabled
     UserDir public_html
</IfModule>

應該不是駭客啦
駭客不會這樣輕易放過你的

應該是你不小心按到dd

Yamaka:
建議樓主根據log的錯誤訊息用估狗查, 可能會比較快啦

不然不知道你是如何設定的, 又看不到你的log

只能憑經驗來想像你的狀況......

arthurt:
log我貼出來如下,請大家看看
 [Fri Aug 22 14:54:37 2008] [error] [client 218.162.77.51] Directory index forbidden by rule: /var/www/html/
[Fri Aug 22 14:54:54 2008] [error] [client 218.162.77.51] Directory index forbidden by rule: /home/hbmsp/public_html/
[Fri Aug 22 15:36:13 2008] [error] [client 218.162.77.51] Directory index forbidden by rule: /var/www/html/
[Fri Aug 22 15:36:55 2008] [error] [client 218.162.77.51] Directory index forbidden by rule: /home/hbmsp/public_html/
[Fri Aug 22 20:51:53 2008] [notice] caught SIGTERM, shutting down
[Fri Aug 22 20:53:30 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/apache2-suexec)
[Fri Aug 22 20:53:31 2008] [notice] Digest: generating secret for digest authentication ...
[Fri Aug 22 20:53:31 2008] [notice] Digest: done
[Fri Aug 22 20:53:33 2008] [notice] Apache-AdvancedExtranetServer/2.0.47 (Mandrake Linux/1.9.91mdk) mod_perl/1.99_08 Perl/v5.8.0 mod_ssl/2.0.47 OpenSSL/0.9.7a PHP/4.3.1 configured -- resuming normal operations
[Fri Aug 22 20:54:49 2008] [error] [client 218.162.77.51] Directory index forbidden by rule: /home/hbmsp/public_html/
[root@www conf]#  [error] [client 218.162.77.51] Directory index forbidden by rule: /home/hbmsp/public_html/ [error] [client 218.162.77.51] Directory index forbidden by rule: /home/hbmsp/public_html/
[root@www conf]# tail /var/log/httpd/error_log
[Fri Aug 22 14:54:37 2008] [error] [client 218.162.77.51] Directory index forbidden by rule: /var/www/html/
[Fri Aug 22 14:54:54 2008] [error] [client 218.162.77.51] Directory index forbidden by rule: /home/hbmsp/public_html/
[Fri Aug 22 15:36:13 2008] [error] [client 218.162.77.51] Directory index forbidden by rule: /var/www/html/
[Fri Aug 22 15:36:55 2008] [error] [client 218.162.77.51] Directory index forbidden by rule: /home/hbmsp/public_html/
[Fri Aug 22 20:51:53 2008] [notice] caught SIGTERM, shutting down
[Fri Aug 22 20:53:30 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/apache2-suexec)
[Fri Aug 22 20:53:31 2008] [notice] Digest: generating secret for digest authentication ...
[Fri Aug 22 20:53:31 2008] [notice] Digest: done
[Fri Aug 22 20:53:33 2008] [notice] Apache-AdvancedExtranetServer/2.0.47 (Mandrake Linux/1.9.91mdk) mod_perl/1.99_08 Perl/v5.8.0 mod_ssl/2.0.47 OpenSSL/0.9.7a PHP/4.3.1 configured -- resuming normal operations
[Fri Aug 22 20:54:49 2008] [error] [client 218.162.77.51] Directory index forbidden by rule: /home/hbmsp/public_html/

arthurt:
這是最新修正後的log
[Fri Aug 22 22:10:38 2008] [notice] Digest: done
[Fri Aug 22 22:10:39 2008] [notice] Apache-AdvancedExtranetServer/2.0.47 (Mandrake Linux/1.9.91mdk) mod_perl/1.99_08 Perl/v5.8.0 mod_ssl/2.0.47 OpenSSL/0.9.7a PHP/4.3.1 configured -- resuming normal operations
[root@www conf]# tail /var/log/httpd/error_log
[Fri Aug 22 22:11:34 2008] [error] [client 218.162.77.51] (13)Permission denied: cannot read directory for multi: /home/hbmsp/public_html/
[Fri Aug 22 22:11:34 2008] [error] [client 218.162.77.51] (13)Permission denied: cannot read directory for multi: /home/hbmsp/public_html/
[Fri Aug 22 22:11:34 2008] [error] [client 218.162.77.51] (13)Permission denied: cannot read directory for multi: /home/hbmsp/public_html/
[Fri Aug 22 22:11:34 2008] [error] [client 218.162.77.51] (13)Permission denied: cannot read directory for multi: /home/hbmsp/public_html/
[Fri Aug 22 22:11:34 2008] [error] [client 218.162.77.51] (13)Permission denied: cannot read directory for multi: /home/hbmsp/public_html/
[Fri Aug 22 22:11:34 2008] [error] [client 218.162.77.51] (13)Permission denied: cannot read directory for multi: /home/hbmsp/public_html/
[Fri Aug 22 22:11:34 2008] [error] [client 218.162.77.51] (13)Permission denied: cannot read directory for multi: /home/hbmsp/public_html/
[Fri Aug 22 22:11:34 2008] [error] [client 218.162.77.51] (13)Permission denied: cannot read directory for multi: /home/hbmsp/public_html/
[Fri Aug 22 22:11:34 2008] [error] [client 218.162.77.51] (13)Permission denied: cannot read directory for multi: /home/hbmsp/public_html/
[Fri Aug 22 22:11:34 2008] [error] [client 218.162.77.51] (13)Permission denied: cannot read directory for multi: /home/hbmsp/public_html/
網頁的訊息是
You don't have permission to access /~hbmsp/ on this server.
已經將public_html改成755
家目錄亦同為755
差一點點,加油阿!

導覽

[0] 文章列表

[#] 下頁

[*] 上頁

前往完整版本