|
Prima@hosting禁止RAR MP3等下载文件设置
|
|
来源: 作者:方舟 发布时间:2008-02-24
|
|
stvista






Linux 第一种方法:只限开能php站点的) #vi /usr/prima/etc/prima.conf [apps] app_url_port = 80 app_url_path = /apps/sessions/ use_apache2 = 1 apachectl_prog = /usr/sbin/apachectl php4_ext = .php,.php4,.phtml,.php5,.mp3,.rar,.exe use_bw_mod = 1 space_mode = 16841
[root@host /usr/prima/etc]# /etc/init.d/acald restart Stopping acald: [FAILED] Starting acald: [ OK ] [root@host /usr/prima/etc]# /etc/init.d/acasd restart Stopping acasd: [ OK ] Starting acasd: [ OK ]
 [root@temp httpd]# cat virtual.conf <VirtualHost 210.51.174.142:80> ServerName blog.f39.com DocumentRoot /www/users/blog.xxx.com ServerAlias www.blog.xxx.com Action cgi-wrapper /cgiwrap/cgiwrap/user_xstje5j5 AddHandler cgi-wrapper .cgi .pl .py .php .php4 .phtml .php5 .mp3 .rar .exe <IfModule bw_mod.c> BandWidthModule On BandWidth all 0 MaxConnection all 60 </IfModule> AddHandler server-parsed .shtml <Directory /www/users/blog.xxx.com> Options +IncludesNOEXEC </Directory> </VirtualHost>

Linux:apache 全局禁止下载 (第二种方式) <directory /www/users> <FilesMatch "\.(mp3|exe|rar)"> Order Deny,Allow Deny from all </FilesMatch> </directory>

|
|
|
|
[ 收藏]
[ 推荐]
[ 评论(0条)]
[返回顶部] [打印本页]
[关闭窗口] |
|
|
| |
|
|
|