Skip to content

Commit 0bc67c7

Browse files
docs(user): Update apache configuration for auto_prepend directive
1 parent 377507c commit 0bc67c7

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

docs/USER_GUIDE.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ A captcha wall could look like:
5050

5151
![Captcha wall](images/screenshots/front-captcha.jpg)
5252

53-
With the provided Standalone bouncer, please note that it is possible to customize all the colors of these pages so
53+
With the provided standalone bouncer, please note that it is possible to customize all the colors of these pages so
5454
that they integrate best with your design.
5555

5656
On the other hand, all texts are also fully customizable. This will allow you, for example, to present translated pages in your users' language.
@@ -61,7 +61,7 @@ On the other hand, all texts are also fully customizable. This will allow you, f
6161
This library includes the [`StandaloneBouncer`](../src/StandaloneBouncer.php) class. You can see that class as a good
6262
example for creating your own bouncer.
6363

64-
Once you set up your server as below, every browser access to a php script will be bounced by the Standalone bouncer.
64+
Once you set up your server as below, every browser access to a php script will be bounced by the standalone bouncer.
6565

6666
You will have to :
6767

@@ -119,6 +119,17 @@ If you are using Apache, you should add this line to your `.htaccess` file:
119119

120120
php_value auto_prepend_file "/absolute/path/to/scripts/auto-prepend/bounce.php"
121121

122+
or modify your `Virtual Host` accordingly:
123+
124+
```
125+
<VirtualHost ...>
126+
...
127+
...
128+
php_value auto_prepend_file "/absolute/path/to/scripts/auto-prepend/bounce.php"
129+
130+
</VirtualHost>
131+
```
132+
122133

123134
## Create your own bouncer
124135

@@ -302,17 +313,17 @@ Here is the list of available settings:
302313

303314
### Cache
304315

305-
- `cache_system`: Select from `phpfs` (File system cache), `redis` or `memcached`.
316+
- `cache_system`: Select from `phpfs` (PHP file cache), `redis` or `memcached`.
306317

307318

308-
- `fs_cache_path`: Will be used only if you choose File system as cache_system. Important note: be sur this path
319+
- `fs_cache_path`: Will be used only if you choose PHP file cache as `cache_system`. Important note: be sur this path
309320
won't be publicly accessible.
310321

311322

312-
- `redis_dsn`: Will be used only if you choose Redis cache as cache_system.
323+
- `redis_dsn`: Will be used only if you choose Redis cache as `cache_system`.
313324

314325

315-
- `memcached_dsn`: Will be used only if you choose Memcached as cache_system.
326+
- `memcached_dsn`: Will be used only if you choose Memcached as `cache_system`.
316327

317328

318329
- `clean_ip_cache_duration`: Set the duration we keep in cache the fact that an IP is clean. In seconds. Defaults to 5.

0 commit comments

Comments
 (0)