通过apache访问非documentroot下面的程序
ServerAdmin admin@163.com
DocumentRoot “e:/vedio”
ServerName www.你的域名.net
ServerAlias 你的域名.net
DocumentRoot “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
这样就可以把程序放在非documentroot下面了~
禁止目录浏览
更改
Options Indexes FollowSymLinks
为
Options -Indexes FollowSymLinks
即可
还没有评论,来说两句吧...