V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
datui
V2EX  ›  SSL

https 访问静态页面 OK 访问 wordpress 显示的源码

  •  
  •   datui · Jun 21, 2018 · 2299 views
    This topic created in 2867 days ago, the information mentioned may be changed or developed.

    求大神支招, 环境是 lamp http 访问是正常的 https 访问静态页面 OK wordpress 程序则是主页的源码

    3 replies    2018-06-23 12:09:39 +08:00
    l12ab
        1
    l12ab  
       Jun 21, 2018 via iPhone
    没有配置 nginx 的 php 部分
    liyer
        2
    liyer  
       Jun 21, 2018
    百度“ apache 无法解析 php 文件”
    datui
        3
    datui  
    OP
       Jun 23, 2018
    已经找到问题了,
    ssl 绑定配置中少了一个这样的
    ProxyPassMatch ^/(.*\.php(/.*)?)$ unix:/home/www/logs/php-fpm.sock|fcgi://127.0.0.1/home/www/htdocs/
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4672 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 10:07 · PVG 18:07 · LAX 03:07 · JFK 06:07
    ♥ Do have faith in what you're doing.