主要虚拟主机配置信息
FcgidInitialEnv PHPRC “D:/phpstudy/php55n” 指定php目录
AddHandler fcgid-script .php
FcgidWrapper “D:/phpstudy/php55n/php-cgi.exe” .php 指定php版本
具体配置信息:
<VirtualHost *:80>
<VirtualHost *:80>
DocumentRoot “D:\phpstudy\www1”
ServerName www.site1.com
ServerAlias site1.com
FcgidInitialEnv PHPRC “D:/phpstudy/php55n”
AddHandler fcgid-script .php
FcgidWrapper “D:/phpstudy/php55n/php-cgi.exe” .php
<Directory “D:\phpstudy\www1”>
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</ Directory>
</ VirtualHost>
参照phpstudy