参看链接:http://my.oschina.net/u/2366984/blog/543148?p={{page}}

主要虚拟主机配置信息

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>

 

相关文章:

  • 2021-11-17
  • 2022-01-08
  • 2021-12-12
  • 2022-12-23
  • 2021-11-30
  • 2021-04-24
  • 2021-06-28
猜你喜欢
  • 2021-08-16
  • 2021-06-16
  • 2021-12-21
  • 2022-01-20
  • 2021-12-23
  • 2021-12-12
  • 2022-12-23
相关资源
相似解决方案