Skip to content

Instantly share code, notes, and snippets.

@sumhat
Created July 29, 2014 13:29
Show Gist options
  • Save sumhat/4294e98bf17d69690450 to your computer and use it in GitHub Desktop.
Save sumhat/4294e98bf17d69690450 to your computer and use it in GitHub Desktop.
# ^/(.*\.php(/.*)?)$:将所有.php结尾的URL都交给PHP-FPM处理
# 127.0.0.1:9000:PHP-FPM的服务端
# /var/www/html/$1:网站源文件所在路径
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/html/$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment