我有一个配置如下的虚拟主机:
<VirtualHost *:80>
ServerAdmin name@ganydomain.com
DocumentRoot "C:/xampp/www/portal/web"
ServerName portal
<Directory "C:/xampp/www/portal/web">
Require all granted
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app.php [QSA,L]
</IfModule>
</Directory>
<Directory /var/www/project/web/bundles>
<IfModule mod_rewrite.c>
RewriteEngine Off
</IfModule>
</Directory>
<Files ~ "\.php$">
Options Indexes FollowSymLinks ExecCGI
AddHandler fcgid-script .php
FcgidWrapper "C:/Xampp/php-7.1.8-nts/php-cgi.exe" .php
</Files>
</VirtualHost>
我不确定它的配置是否正确,因为我有6个进程在工作,有时在底部出现以下消息时会出现500错误:Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.6.14 mod_fcgid/2.3.9
。我在这里看到php5.6很奇怪,因为它是安装在此Apache中的主要版本(它很旧),但在此virtualhost中没有用。
如果有人可以给我任何提示,我将非常感谢。