我们知道apache的配置文件httpd.conf可以配置网站目录的默认主页.配置文件该部分定义如下: #DirectoryIndex: sets the file that Apache will serve if a directory is requested. <IfModule dir_module> DirectoryIndex index.php index.php3 index.html index.htm</IfModule> 同理htaccess中的Direct
Change the apache2 default website directory As we know, The apache2 default directory at /var/www/,If you want to modify it or you have some virtual hosts,You need to find the file which in "/etc/apache2/sites-enabled/000-default",Use vi editor