HHVM FastCGI配置问题 - ProxyPass失败

时间:2014-10-26 18:58:22

标签: php apache fastcgi hhvm

我在Vagrant上运行Ubuntu 12.04。 Apache 2.2.22

我一直在尝试在hhvm上测试我的应用。我在此之后配置了所有内容:https://github.com/facebook/hhvm/wiki/fastcgi

在我的vhost配置中添加fastcgi模块部分后,我开始收到404未找到错误。然后我发现我需要使用ProxyPassMatch。添加ProxyPassMatch行后,我开始获得500内部错误。我的apache日志显示了这个:

[warn] proxy: No protocol handler was valid for the URL /index.php. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.

所有模块均已启用。

这是我的vhost配置:

ServerAdmin webmaster@localhost
DocumentRoot /opt/myapp/www/
ServerName myapp.demo
ServerAlias myapp.demo

ErrorLog  /var/log/apache2/myapp.demo-error_log
CustomLog /var/log/apache2/myapp.demo-access_log common
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/opt/myapp/public/$1

<IfModule mod_fastcgi.c>

    <FilesMatch \.php$>
                    SetHandler hhvm-php-extension
    </FilesMatch>

    <FilesMatch \.hh$>
            SetHandler hhvm-hack-extension
    </FilesMatch>

    Alias /hhvm /hhvm
    Action hhvm-php-extension /hhvm virtual
    Action hhvm-hack-extension /hhvm virtual

    FastCgiExternalServer /hhvm -host 127.0.0.1:9000 -pass-header Authorization -idle-timeout 300

</IfModule>

谢谢!

0 个答案:

没有答案