Skip to content
This repository was archived by the owner on Oct 3, 2021. It is now read-only.

Commit 4c85d86

Browse files
authored
Merge pull request #10 from AndyHee/master
Update INSTALL.md
2 parents 5f7930c + f6769a6 commit 4c85d86

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

INSTALL.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,22 @@ In your Virtual Host file, set your document root as follow:
6262
DocumentRoot /path/to/friendica-directory/public/
6363
```
6464

65+
### Nginx
66+
Add these lines to your nginx config file.
67+
68+
```
69+
root /path/to/friendica-directory/public;
70+
71+
location / {
72+
rewrite ^/(.*) /index.php?$args last;
73+
}
74+
75+
location ~* \.(jpg|jpeg|gif|png|ico|css|js|htm|html|ttf|woff|svg)$ {
76+
expires 30d;
77+
try_files $uri /index.php?$args;
78+
}
79+
```
80+
6581
## 4. Set up the background task
6682

6783
Friendica Directory relies on a background task running every minute to keep the directory up to date.

0 commit comments

Comments
 (0)