<VirtualHost *:80>
ServerAdmin tech@pk.com
DocumentRoot "/wwwt/db/mz"
ServerName mz.pk.com
DirectoryIndex index.php index.html index.htm
<Directory "/wwwt/db/mz">
Options FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
SetEnvIfNoCase Referer "^http://.*\.pk\.com" local_ref=1
SetEnvIfNoCase Referer ".*\.pk\.com" local_ref=1
<filesmatch "\.(txt|doc|mp3|zip|rar|jpg|jpeg|gif)">
Order Allow,Deny
Allow from env=local_ref
</filesmatch>
</VirtualHost>
转载于:https://blog.51cto.com/liang3391/456527