标签:虚拟主机
1.编辑虚拟主机文件
vim /usr/local/apache2/conf/extra/httpd-vhosts.conf
SetEnvIfNocase Referer "^http://.*\.xrc\.com" local_ref ---填写自己的域名
SetEnvIfNocase Referer ".*\.yourdomin\.com" local_ref
<filesmatch "\.(txt|doc|mp3|zip|rar|jpg|gif|png|css)">
Order Allow,Deny
Allow from env=local_ref
</filesmatch>
标签:虚拟主机
原文地址:http://11706174.blog.51cto.com/11696174/1787425