From ea3657d15bef8a3f5d51ecab725081cfe04a28df Mon Sep 17 00:00:00 2001 From: Andy H3 Date: Wed, 14 Nov 2018 21:39:47 +0700 Subject: [PATCH] Update INSTALL.md --- INSTALL.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/INSTALL.md b/INSTALL.md index d6053ed..ccfdf20 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -63,10 +63,19 @@ DocumentRoot /path/to/friendica-directory/public/ ``` ### Nginx -Include this line your nginx config file. +Add these lines to your nginx config file. ``` root /path/to/friendica-directory/public; + +location / { + rewrite ^/(.*) /index.php?$args last; +} + +location ~* \.(jpg|jpeg|gif|png|ico|css|js|htm|html|ttf|woff|svg)$ { + expires 30d; + try_files $uri /index.php?q=$uri&$args; +} ``` ## 4. Set up the background task