我的apache为什么输入127.0.0.1可以访问,输入127.0.0.1/~username没反应??

我的apache为什么输入127.0.0.1可以访问,输入127.0.0.1/~username没反应??

已经在/home/username/下手工建立 了一个public_html的文件夹
DocumentRoot设置是/home/username
而且可以通过localhost访问了,访问的结果是/home/username下的文件目录
UserDir没有改,就是在/usr/local/apache/conf/extra下的httpd-userdir.conf文件
文件内容没改,如下:

# Settings for user home directories
#
# Required module: mod_userdir

#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.  Note that you must also set
# the default access control for these directories, as in the example below.
#
UserDir public_html

#
# 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 Indexes
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    <Limit GET POST OPTIONS>
        Order allow,deny
        Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS>
        Order deny,allow
        Deny from all
    </LimitExcept>
</Directory>


看网上说只要输入http;//127.0.0.1/~username就可以访问的,但是我的不行阿,不知道为什么
搞定了
怎么解决的?
Required module: mod_userdir