Skip to content

defool/autoindex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple AutoIndex

A directory listing tool.

Features

  • Sortable
  • Rememberable
  • Efficient

Requirements

  • python 2.x
  • uwsgi 2.x

Installation on Ubuntu 12.04LTS

Step 1: Install the required packages

sudo apt-get install python-dev python-pip git
sudo pip install uwsgi
git clone http://github.com/defool/autoindex.git
cd autoindex
pwd

Step 2:

Set chdir in autoindex/uwsgi.ini to the your full path name of autoindex directory

Step 3: Run uwsgi

uwsgi uwsgi.ini # or nohup uwsgi uwsgi.ini &

Configuration on Nginx

server {
    listen 800;
    root /tmp/ # root directory for listing
    try_files $uri @autoindex;    
    location /autoindex { # static resources
    	alias {path to autoindex directory}/assets;
        expires 24h;
    }
    location @autoindex {
    	uwsgi_pass 127.0.0.1:20001; # corresponding setting in uwsgi.ini
    	include uwsgi_params;
    }
}

root and alias should be set manually.

Screenshot

Screenshot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published