Giter Site home page Giter Site logo

autoindex's Introduction

Neat Index

Neat Index is an alternative to the Apache, nginx (or other web server) auto index module. You can show readme files in your directory listing, control what files can be listet, and completely customise the generated output using XSLT.

Server Requirements

  • PHP 5.3 or above
  • PHP's LibXML and LibXSL extensions
  • A UNIX like operating system

Installation on Apache

  1. Download Neat Index from GitHub and extract the archive

  2. Move the extracted directory to the document root of your webserver and rename to .autoindex

  3. Disable Apache's own auto index module:

    Options -Indexes
    
  4. Add .autoindex/index.php as a directory index:

    DirectoryIndex index.html index.php /.autoindex/index.php
    
  5. Sit back and marvel at your fancy looking index pages.

Installation on nginx

Add the following lines in to config:

location /DIRECTORY_TO_USE/ {
	include fastcgi_params;
	# make sure there is /autoindex/view/ at $document_root
	fastcgi_param SCRIPT_NAME /autoindex/index.php;
	fastcgi_param SCRIPT_FILENAME
		/PATH_TO_AUTOINDEX/autoindex/index.php;
	fastcgi_param PATH_INFO $uri;
	fastcgi_param PATH_TRANSLATED $document_root$uri;

	if (-d $document_root$uri) {
		fastcgi_pass unix:/var/run/php5-fpm.sock;
	}
}

Screenshot

Screenshot

autoindex's People

Contributors

sherwoodwang avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.