在httpd-vhosts.conf配置如下:
<VirtualHost *:80>
ServerName www.jy.com
DocumentRoot "C:\htdocs\www.jy.com"
ErrorDocument 400 /errpage/400.html
ErrorDocument 403 /errpage/403.html
ErrorDocument 404 /errpage/404.html
ErrorDocument 405 /errpage/405.html
ErrorDocument 500 /errpage/500.html
<Directory "C:\htdocs\www.jy.com">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>