小编Sat*_*wal的帖子

如何在apache Web服务器中启用目录列表

我无法在我的apache Web服务器中启用目录列表.我尝试了各种解决方案,但没有工作.我刚刚安装了httpd 2.4.6并使用/etc/httpd/conf.d/ssl.conf目录下的ssl.conf启用了https并尝试访问https://server.example.com/但这不是列出的目录.这些是ssl.conf中的配置

DocumentRoot "/home/userx/Downloads/"
ServerName server.example.com:443
Run Code Online (Sandbox Code Playgroud)

下面是它在VirtualHost元素下的ssl.conf中的含义.我安装时文件和第一个Directory元素已经存在,我刚为"/ home/userx/Downloads"添加了Directory.我想在访问URL https://server.example.com/时浏览/ home/userx/Downloads的内容.我在这里错过了什么?

<Files ~ "\.(cgi|shtml|phtml|php3?)$">
    SSLOptions +StdEnvVars
</Files>
<Directory "/var/www/cgi-bin">
    SSLOptions +StdEnvVars
</Directory>
<Directory "/home/userx/Downloads">
  Options +Indexes
  AllowOverride all
</Directory>
Run Code Online (Sandbox Code Playgroud)

apache httpd.conf

21
推荐指数
4
解决办法
9万
查看次数

标签 统计

apache ×1

httpd.conf ×1