QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 668|回复: 4

soem questions about apache

[复制链接]
发表于 2003-5-24 13:48:23 | 显示全部楼层 |阅读模式
enviroment:
linux9+apache/2.0.40
question:
1
i have put index.html page in the DocumentRoot directory and i can browse the page by inputing the address in the explorer,but it can NOT show the right character code.i have to choose the gb2312(简体中文)in the explorer manually.i have read some document that saying:change the "AddDefaultCharset GB2312" in the httpd.conf file,i tried,but it does not work. i want to know How can i the explorer show the right character automatically.
2
i have changed the setting in httpd.conf file,i deleted the "UserDir disable" and uncomment the line "UserDir public_html" ,then i added a user "jimi" in the system and built the public_html directory in the /home/jimi/ and added index.html in the public_html dirctory ,but i can NOT browse the jimi's page by inputing the url http://serverip/~jimi ,it displayed as below :
"Forbidden
You don't have permission to access /~jimi on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request."
How can i correct this problem ?
3
i have open the service vsftpd and telnet in the system,but i can not ftp and telnet the server using the root .what the problem it is?
                              thank u for helping me








发表于 2003-5-24 16:59:46 | 显示全部楼层
AddDefaultCharset ISO-2002-CN (关键是把/etc/httpd/conf/http.conf文件这一栏换成这样)

#
# Commonly used filename extensions to character sets. You probably
# want to avoid clashes with the language extensions, unless you
# are good at carefully testing your setup after each change.
# See ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets for
# the official list of charset names and their respective RFCs
#
AddCharset ISO-8859-1  .iso8859-1  .latin1
AddCharset ISO-8859-2  .iso8859-2  .latin2 .cen
AddCharset ISO-8859-3  .iso8859-3  .latin3
AddCharset ISO-8859-4  .iso8859-4  .latin4
AddCharset ISO-8859-5  .iso8859-5  .latin5 .cyr .iso-ru
AddCharset ISO-8859-6  .iso8859-6  .latin6 .arb
AddCharset ISO-8859-7  .iso8859-7  .latin7 .grk
AddCharset ISO-8859-8  .iso8859-8  .latin8 .heb
AddCharset ISO-8859-9  .iso8859-9  .latin9 .trk
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5        .Big5       .big5
回复

使用道具 举报

发表于 2003-5-24 17:19:56 | 显示全部楼层
2 . 因为新建的用户的主目录的属性 缺省是: 0700 (apache 的运行用户 不可读)

例如:
2003年05月24日下午16时16分44秒[root@test1 hicom]# ll /home/
total 12
drwx------    3 hicom    hicom        4096  5月 24 15:01 hicom/
drwx------    2 root     root         4096  5月 16 05:55 lost+found/
drwx------    3 vpopmail vchkpw       4096  5月 22 11:43 vpopmail/
2003年05月24日下午16时58分25秒[root@test1 hicom]#  

修改其属性为 0755 即可。


3  因为:
2003年05月24日下午15时04分09秒[root@gugong root]# cat /etc/ftpusers
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
gopher
nobody
rpm
vcsa
nscd
sshd
rpc
rpcuser
mailnull
smmsp
pcap
apache
squid
webalizer
xfs
named
ntp
gdm
amanda
canna
wnn
fax
netdump
nut
ldap
mysql
ident
postfix
mailman
privoxy
pvm
desktop
radvd
上面的用户都不可以 ftp 进来。
(ftpusers - list of users that may not log in via the FTP daemon 可以参见  man ftpusers 。)

其实即使 /etc/ftpusers 里面没有 root ,root 默认也不可以 ftp ,这是 Linux 上面每个 ftpd 的默认设置。



telnet 同 ftp 一样,默认 root 是不可以登录的 !
回复

使用道具 举报

发表于 2003-5-24 17:30:30 | 显示全部楼层
telnet,ftp的问题,改一改就能拥root了
回复

使用道具 举报

 楼主| 发表于 2003-5-24 20:11:29 | 显示全部楼层
fchunan,
thank u very much for your helps
i tried again,using "AddDefaultCharset ISO-2002-CN" in the /etc/httpd/conf/http.conf file and restarting the service,but i still can NOT browse the web in right character code automatically now.is there any other tips in this question ?
thank u very very much  again ( :
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-16 17:28 , Processed in 0.060007 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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