<VirtualHost 106.888.888.88:80>
ServerAdmin tom@xxxxx.com
DocumentRoot "/opt/app/php/xxxxx.img"
ServerName img.xxxxx.com
ServerAlias img.<SPAN></SPAN>xxxxx<SPAN></SPAN>.com
ErrorLog "logs/img.xxxxx.com-error.log"
CustomLog "/etc/httpd/logs/img.xxxxx.com.access.log" combined
DirectoryIndex index.php index.html index.htm
<Directory "/opt/app/php/xxxxx.img">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory "/opt/app/php/xxxxx.img">
<FilesMatch ".(php|asp|jsp)$">
Deny from all
</FilesMatch>
</Directory>
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://xxxxx.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://xxxxx.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.xxxxx.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.xxxxx.com$ [NC] RewriteRule .*\.(gif|jpg|png|swf)$ http://www.xxxxx.com/nolink.jpg [R,NC] </VirtualHost>