Skip to content

willtheorangeguy/Nginx-File-Directory

Nginx File Directory
Nginx File Directory

The basic Nginx file directory page, as a simple HTML page.

Docker State GitHub Pages State Gitleaks State GitHub Version GitHub Issues GitHub Pull Requests Discord Server ID Downloads GitHub Languages

Key FeaturesDownloadHow To UseSupportContributingChangelogCredits & Contributors

screenshot

Key Features

  • Basic file directory view.
  • Name and upload date.
  • Folder and file links.
  • Compatible with all web servers and websites.
  • Cross platform.

Download

You can download the source code to modify the code and create your own file directory page.

You can also access the production version the website, available on all platforms, here.

How To Use

To clone and run this website, you'll need Git installed on your computer. If you would rather not use Git, you can just download the code from GitHub above. From your command line:

# Clone this repository
$ git clone https://github.com/willtheorangeguy/Nginx-File-Directory.git

# Go into the repository
$ cd Nginx-File-Directory

# Run the webpage
$ index.html

You can also pull the Docker image from GitHub Packages. From your command line:

# Pull image
$ docker pull ghcr.io/willtheorangeguy/nginx-file-directory:main

# Run container
$ docker run -d -p 8000:80 ghcr.io/willtheorangeguy/nginx-file-directory:main

# Now, navigate to localhost in your browser to see the webpage

However, to make this your own directory, follow the steps below:

Basics

  1. Line 8: Update the directory placeholder text between the <title>...</title> tags with the actual directory name. This will be the title of the webpage.
<head>
  <title>Index of /directory</title>
</head>
  1. Line 10: Update the directory placeholder text between the <h1>...</h1> tags with the actual directory path. This will be the title displayed on the page.
<h1>Index of /directory</h1>
  1. Line 13: If this is a directory inside of another directory, remove the <!-- and --> to uncomment the link to the directory above the current directory.
<!--<a href="../">../</a>-->
  1. Line 13: If this is a directory inside of another directory, change the ../ between the <a>...</a> tags with the actual link to the folder above.

For a File or Folder

<a href="folder/">folder/</a> MM-DD-YYYY HH:MM -
  • Replace the folder/ or file/ link (between the href="..." tag) with the actual link to the file or folder.
  • Replace the folder/ or file/ placeholder name (between the <a>...</a> tags) with the real name of the file or folder.
  • Replace the MM-DD-YYYY HH:MM placeholder date with the date the file or folder was uploaded.
  • Add more of these rows as necessary.

Support

Further customization options for different types of files and folder structures can be found in CUSTOMIZATION. More documentation is available in the Documentation and on the Wiki. If more support is required, please open a GitHub Discussion or join our Discord.

Contributing

Please contribute using GitHub Flow. Create a branch, add commits, and open a pull request.

Please read CONTRIBUTING for details on our CODE OF CONDUCT, and the process for submitting pull requests to us.

Changelog

See the CHANGELOG file for details.

Credits

This software uses the following open source packages, projects, services or websites:

GitHub W3C W3Schools Nginx
GitHub W3C W3Schools Nginx
Web - Plans Web - Donate Web - Pro Web

Contributors

You may also like...

  • Running Calculator - A running speed calculator for any unit of distance.
  • PyWorkout - A minimal CLI to keep you inspired during your workout! Easily used and customized, with support for multiple workout plans, different muscle groups and video workouts.
  • PyAvatar - Easily display all of your creative avatars to keep them consistent across websites.

License

The website code in this repository is created by the Nginx Development Team and maintained by the Nginx Authors. The server is released under the BSD 3-Clause License, and this project follows those licensing guidelines.

This project is licensed under the BSD 2-Clause “Simplified” License - see the LICENSE file for details. See the Privacy Policy and Terms and Conditions for legal information.