lyl801013 发表于 2017-1-3 11:42:15

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
DirectoryIndexindex.php
RewriteEngine On
<Directory D:\zytrend>
Options FollowSymLinks
AllowOverride all
Order deny,allow
allow from all
</Directory>
</VirtualHost>
页: [1]
查看完整版本: apache的配置文件