Php 禁用目录浏览wamp
正在尝试禁用wamp中的目录浏览,以便我的文件不会在localhost中列出 但我找不到任何关于它的最新信息,所有旧的视频/教程都不起作用 我已经尝试将+索引更改为-索引,并尝试将其完全删除,但不起作用Php 禁用目录浏览wamp,php,apache,wamp,wampserver,wamp64,Php,Apache,Wamp,Wampserver,Wamp64,正在尝试禁用wamp中的目录浏览,以便我的文件不会在localhost中列出 但我找不到任何关于它的最新信息,所有旧的视频/教程都不起作用 我已经尝试将+索引更改为-索引,并尝试将其完全删除,但不起作用 PHPIniDir "${APACHE_DIR}/bin" LoadModule php7_module "${INSTALL_DIR}/bin/php/php7.0.33/php7apache2_4.dll" <IfModule unixd_module> User daemo
PHPIniDir "${APACHE_DIR}/bin"
LoadModule php7_module "${INSTALL_DIR}/bin/php/php7.0.33/php7apache2_4.dll"
<IfModule unixd_module>
User daemon
Group daemon
</IfModule>
ServerAdmin wampserver@wampserver.invalid
ServerName localhost:80
<Directory />
AllowOverride none
Require all denied
</Directory>
HostnameLookups Off
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +FollowSymLinks +Multiviews
AllowOverride All
Require local
</Directory>
<IfModule dir_module>
DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>
<Files ".ht*">
Require all denied
</Files>
ErrorLog "${INSTALL_DIR}/logs/apache_error.log"
LogLevel warn
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
</IfModule>
<IfModule alias_module>
ScriptAlias /cgi-bin/ "${SRVROOT}/cgi-bin/"
</IfModule>
<IfModule cgid_module>
</IfModule>
<Directory "${SRVROOT}/cgi-bin">
AllowOverride None
Options None
Require all granted
</Directory>
<IfModule headers_module>
RequestHeader unset Proxy early
</IfModule>
<IfModule mime_module>
TypesConfig conf/mime.types
AddEncoding x-compress .Z
AddEncoding x-gzip .gz .tgz
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
</IfModule>
EnableSendfile off
Include conf/extra/httpd-autoindex.conf
Include conf/extra/httpd-vhosts.conf
<IfModule proxy_html_module>
Include conf/extra/proxy-html.conf
</IfModule>
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
Include "${INSTALL_DIR}/alias/*"
PHPIniDir“${APACHE_DIR}/bin”
LoadModule php7_module“${INSTALL_DIR}/bin/php/php7.0.33/php7apache2_4.dll”
用户守护进程
组守护进程
服务器管理员wampserver@wampserver.invalid
ServerName本地主机:80
不允许超限
要求全部拒绝
主机名查询
DocumentRoot“${INSTALL_DIR}/www”
选项+后续符号链接+多视图
允许超越所有
要求本地
DirectoryIndex.php index.php3 index.html index.htm
要求全部拒绝
ErrorLog“${INSTALL_DIR}/logs/apache_error.log”
日志级别警告
日志格式“%h%l%u%t\%r\”%>s%b\“%%{Referer}i\\\“%%{User Agent}i\\”组合
日志格式“%h%l%u%t\%r\”%>s%b”通用
日志格式“%h%l%u%t\%r\”%>s%b\“%%{Referer}i\\“%%{User Agent}i\%i%O”组合IO
ScriptAlias/cgi-bin/“${SRVROOT}/cgi-bin/”
不允许超限
选项无
要求所有授权
RequestHeader提前取消代理设置
TypesConfig conf/mime.types
加法编码x-compress.Z
加法编码x-gzip.gz.tgz
AddType应用程序/x-compress.Z
AddType应用程序/x-gzip.gz.tgz
AddType应用程序/x-httpd-php.php
AddType应用程序/x-httpd-php.php3
启用发送文件关闭
包括conf/extra/httpd-autoindex.conf
包括conf/extra/httpd-vhosts.conf
包括conf/extra/proxy-html.conf
SSLR和OMSEED启动内置
SSLR和OMSEED连接内置
包括“${INSTALL_DIR}/alias/*”
我希望得到一个禁止的页面,但得到的是正常的本地主机页面。正确的答案是删除httpd vhosts.conf文件中的+索引,该文件位于httpd.conf文件中的tags@04FS内