httpd.conf
# PHP 5 LoadFile "D:\php\php\php5ts.dll" LoadFile "D:\php\php\libmysql.dll" LoadModule php5_module "D:\php\php\php5apache2_2.dll" AddType application/x-httpd-php .php # configure the path to php.ini PHPIniDir "D:\php\php"
httpd-vhosts.conf
<VirtualHost *:80>
ServerSignature Off
RewriteEngine on
DocumentRoot D:\zytrend\web
ServerAlias *.cntj.com
ServerName www.cntj.com
DirectoryIndex index.php
RewriteEngine On
<Directory D:\zytrend>
Options FollowSymLinks
AllowOverride all
Order deny,allow
allow from all
</Directory>
</VirtualHost>