apche怎么设置www.xxx.com/~xxx

apche怎么设置www.xxx.com/~xxx

为什么我每次都是显示
Forbidden
You don't have permission to access /~xianco/quit.php3 on this server.


--------------------------------------------------------------------------------
      
和我的问题差不多~~
我的不是其他用户,就是基本目录也是不能浏览,
和你的错误提示一样,你要是知道怎么解决告诉我一声……      
我的主目录是用虚拟主机的方式实现的,你试试吧,我这个问题还不知道怎么解决呢!!      
我的主目录是用虚拟主机的方式实现的,你试试吧,我这个问题还不知道怎么解决呢!!      
这个并不是APACHE的问题,只需要把放置WEB的目录的权限设置一下就可以了!!!

如果设置成777的话一定行,但这样的话可能有安全方面的问题,所以试一下吧!!!      
谁知道哪里出问题了,希望各位大虾帮帮忙      
那把你的配置文件贴上来看看吧!      
DocumentRoot "/usr/local/apache/htdocs"

#
# Each directory to which Apache has access, can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# permissions.  
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/usr/local/apache/htdocs">

#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
    Options Indexes FollowSymLinks MultiViews ExecCGI
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
    AllowOverride None

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all
</Directory>
#<Directory "/usr/local/apache/htdocs">
#    Options Indexes FollowSymLinks MultiViews ExecCGI
#    AllowOverride None
#    Order allow,deny
#    Allow from all
#</Directory>
<Directory "/home/[a-z]+/public_html">
    Options Indexes FollowSymLinks MultiViews ExecCGI
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>


#
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
<IfModule mod_userdir.c>
    UserDir public_html
</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory /home/*/public_html>
#    AllowOverride FileInfo AuthConfig Limit
#    Options MultiViews Indexes SymLinksIfOwnerMatch ExecCGI
#    <Limit GET POST OPTIONS PROPFIND>
#        Order allow,deny
#        Allow from all
#    </Limit>
#    <LimitExcept GET POST OPTIONS PROPFIND>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>
#</Directory>

#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index.  Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
    DirectoryIndex index.html index.php3 index.php index.cgi
</IfModule>
最重要就是这段吧      
这样,加上
UserDir public_html
<Directory /home/~xianco>
Order allow,deny
Allow from all
</Directory>
试试看      
我用的是RH70自带的那个,就改了三个设置
1 E-MAIL
2 SERVERNAME
3 建立了一个虚拟主机
然后重启WEN服务就好了。