Apache的conf目录下的httpd.conf文件中

1、apache 默认入口文件配置
DirectoryIndex index.html index.php index.htm home.php home.html home.htm l.php
2、当服务器根目录下不存在入口文件时:
若允许访问文件列表,则会输出Index Of 和文件列表信息;
不允许则会提示没有权限访问(You don't have permission to access / on this server.)
Apache禁止访问文件列表(Indexes 前面的+号表允许访问文件列表;-号表示禁止访问访问文件列表)
Options -Indexes +FollowSymLinks +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
这里也可以在虚拟机里配置
ServerName j.biwoda.com
DocumentRoot D:phpStudyPHPTutorialWWWbiwoda
Options +Indexes +FollowSymLinks +ExecCGI #添加这条,每个对应的功能
Require all granted
Allow from all
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php




网站建设
品牌设计
APP开发
小程序开发
商城开发
网站优化
UI设计
增值服务