apache的配置文件

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>

猜你喜欢

转载自gardenyuan.iteye.com/blog/1000436
今日推荐