配置文件在apache\conf\extra\httpd-vhosts.conf
<VirtualHost 域名:端口号 >
ServerAdmin webmaster@域名
RewriteEngine On
DocumentRoot "目录"
ServerName 域名
<Directory "目录">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>
例如:
<VirtualHost localhost:80>
ServerAdmin webmaster@nie.a.com
RewriteEngine On
DocumentRoot "E:/xampp/htdocs/jsx/"
ServerName nie.a.com
<Directory "E:/xampp/htdocs/jsx/">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>
邢台招聘 http://www.jinshixun.com/quanzhi/ kk06