通过apache访问非documentroot下面的程序

谁践踏了优雅 2021-09-12 04:56 281阅读 0赞

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

即可

发表评论

表情:
评论列表 (有 0 条评论,281人围观)

还没有评论,来说两句吧...

相关阅读

    相关 Java程序通过代理访问网络

    问题背景 最近工作上有开发爬虫的任务,对目标网站数据进行抓取,由于大部分网站都在国外,无法直接访问,需要通过代理才能登录。爬虫部署的服务器在香港,所以爬虫部署到服务器后,