GNU Social的Caddy配置

Caddyfile应该能在GNU Social的任何一个分支运行。有关先决条件和安装信息,请参阅包含的自述文件。

要获得最新版本,请输入以下你希望[gs][GNU Social]安装位于的位置:git clone https://git.gnu.io/gnu/gnu-social。如果你喜欢冒险,你可以在你的gnusocial目录运行下面的命令:

  1. git checkout nightly

Caddyfile

  1. example.com www.example.com
  2. # Your fastcgi for php-fpm will be different if you are listening on a socket
  3. # or port. Here Are examples for both methods.
  4. # Uncomment the one you need.
  5. # fastcgi / 127.0.0.1:9000 php
  6. # fastcgi / /var/run/php-fpm/php-fpm.sock php
  7. rewrite {
  8. to {path} {path}/ /index.php?p={path}
  9. }
  10. root /var/www/html/gnusocial