小编Kee*_*use的帖子

在 Ubuntu 16.04 上使用 FastCGI 配置 Apache 2.4 - 我该如何处理 php7.0-fpm.conf?

通过调整来自这个 askubuntu 线程这个 HowtoForge 文档这个 Digital Ocean 教程的说明,我已经设法让 FastCGI 在 Ubuntu 16.04 上与 Apache 2.4 一起工作。

所有这些消息来源都说要创建 /etc/apache2/conf-available/php7.0-fpm.conf并告诉您要放入什么。但是安装后php-fpm,我已经有了那个文件,内容如下:

# Redirect to local php-fpm if mod_php is not available
<IfModule !mod_php7.c>
    # Enable http authorization headers
    SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1

    <FilesMatch ".+\.ph(p[3457]?|t|tml)$">
    SetHandler "proxy:unix:/run/php/php7.0-fpm.sock|fcgi://localhost"
    </FilesMatch>
    <FilesMatch ".+\.phps$">
        # Deny access to raw php sources by default
        # To re-enable it's recommended to enable access to the files
        # only in …
Run Code Online (Sandbox Code Playgroud)

server php apache2 fastcgi

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

apache2 ×1

fastcgi ×1

php ×1

server ×1