Skip to content

Commit 2c1307a

Browse files
Aaron Ellingtonmholt
Aaron Ellington
authored andcommitted
Add vanilla example (caddyserver#99)
1 parent 6b2e58b commit 2c1307a

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

vanilla/Caddyfile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
forum.example.com {
2+
root /var/www/vanilla/
3+
4+
fastcgi / /run/php/php7.0-fpm.sock php {
5+
index index.php
6+
}
7+
8+
rewrite {
9+
to {path} /index.php?p={path}&{query}
10+
}
11+
}

vanilla/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# [Vanilla](https://open.vanillaforums.com/)
2+
3+
**Considerations:**
4+
- You may need to change the `fastcgi` endpoint to the listen address of your `php-fpm` instance
5+
- Make sure that the user that Caddy is running under has permissions to to `php-fpm`
6+
- Make sure that the user that `php-fpm` is running under has permissions to the `root` directory

0 commit comments

Comments
 (0)