Skip to content

Commit e31d6a4

Browse files
authored
Update README.md
1 parent f537a74 commit e31d6a4

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

README.md

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,44 @@
1-
# nginx-fancyindex
1+
# nginx-fancyindex
2+
3+
## Related Links
4+
5+
NGINX module: [aperezdc/ngx-fancyindex](https://github.com/aperezdc/ngx-fancyindex)
6+
7+
Original Theme: [aleha/nginx-fancyindex-flat-theme](https://github.com/alehaa/nginx-fancyindex-flat-theme)
8+
9+
Demo: [https://files.webiptek.com](https://files.webiptek.com)
10+
11+
## How to Use
12+
13+
1. Download all resources in this repository and put them on spesific folder. For example, I placed them on /var/www/files.webiptek.com/.fancyindex.
14+
```
15+
ls /var/www/files.webiptek.com/.fancyindex
16+
footer.html header.html js less theme.d theme.less logo.png
17+
```
18+
19+
2. Example /etc/nginx/sites-available/{yoursite} configuration.
20+
```
21+
server {
22+
root /var/www/files.webiptek.com;
23+
server_name files.webiptek.com;
24+
location / {
25+
fancyindex on;
26+
fancyindex_localtime on;
27+
fancyindex_name_length 255;
28+
fancyindex_show_path off;
29+
fancyindex_exact_size off;
30+
fancyindex_header "/theme/header.html";
31+
fancyindex_footer "/theme/footer.html";
32+
fancyindex_ignore ".fancyindex" "favicon.ico";
33+
fancyindex_time_format "%d-%b-%Y %H:%M";
34+
try_files $uri $uri/ =404;
35+
}
36+
location /theme {
37+
# cutomize your theme location below
38+
alias /var/www/files.webiptek.com/.fancyindex;
39+
}
40+
}
41+
```
42+
## LICENSE
43+
44+
This software is distributed for free, in the hope that it will be useful, but **WITHOUT ANY WARRANTY**. Without even the implied warranty of **MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE**.

0 commit comments

Comments
 (0)