开发者

how to configure apache to view hidden (`.`) files?

How do I make a directory listing in apache show the ./hidden files? I tried both

    <Directory /var/www/*>
            Options Indexes FollowSymLinks M开发者_JAVA技巧ultiViews
            AllowOverride None
            Order allow,deny
            allow from all
    </Directory>

and

    <Directory /var/www/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride None
            Order allow,deny
            allow from all
    </Directory>

but neither show the hidden files


check what your IndexIgnore is set to. On mine, it's:

/etc/apache2/mods-enabled/autoindex.conf:IndexIgnore .??* *~ *# RCS CVS *,v *,t


Obviously, you'd want to remove that .??*

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜