<VirtualHost *:80>
ServerAdmin admin@163.com
DocumentRoot "e:/vedio"
ServerName 你的域名.net
ServerAlias 你的域名.net
DocumentRoot "e:/vedio"
<Directory "e:/vedio">
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.pl default.pl index.shtml
AllowOverride Options FileInfo
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>
这样就可以把程序放在非documentroot下面了~
禁止目录浏览
更改
Options Indexes FollowSymLinks
为
Options -Indexes FollowSymLinks