Skip to content

Commit d005666

Browse files
committed
Update README.md
1 parent 6c40ba0 commit d005666

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

README.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -239,19 +239,6 @@ add and/or remove moodle site folders and files with any ftp client program in `
239239

240240
#### Webserver
241241

242-
##### XSendfile aka X-Accel-Redirect
243-
244-
Setting Moodle and Nginx to use XSendfile functionality is a big win as it frees PHP from delivering files allowing Nginx to do what it does best, i.e. deliver files.
245-
246-
```
247-
$CFG->xsendfile = 'X-Accel-Redirect';
248-
$CFG->xsendfilealiases = array(
249-
'/dataroot/' => $CFG->dataroot
250-
);
251-
```
252-
253-
add the above code in the ```./moodle/moodle/config.php``` file.
254-
255242
add or remove code in the ```./webserver/templates/nginx.conf.template``` file for custom nginx configurations.
256243

257244
[https://docs.nginx.com/nginx/admin-guide/basic-functionality/managing-configuration-files/](https://docs.nginx.com/nginx/admin-guide/basic-functionality/managing-configuration-files/)

0 commit comments

Comments
 (0)