Skip to content
osnosnPublic

About

Autoindex write in PHP. & Nginx custom autoindex with XSLT(use xslt_stylesheet).

Topics

Resources

Stars

14 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Contains two separate projects

  • Autoindex write in PHP.

    copy .DirTrees/ and index.php into FOLDER.
    .

  • Nginx custom autoindex with XSLT.

use ngx_http_autoindex_module module.

location ^~ /bt/ {
   autoindex on;
   autoindex_format html;
   #autoindex_localtime off;
   charset utf-8;
   include /etc/nginx/default.d/php71w-fpm.conf;
}

.

use ngx_http_autoindex_module module.
use ngx_http_xslt_module module.
ngx_http_xslt_module support by libexslt. So it can use EXSLT functions.

location ^~ /bt/ {
   autoindex on;
   autoindex_format xml;
   xslt_stylesheet /data/www/html/autoindex.xslt cpath="$uri";
   #charset utf-8;
   include /etc/nginx/default.d/php71w-fpm.conf;
}

# modify variable "TIMEDIFF" in "autoindex.xslt", 
# time nochange 'PT0H', +8 hour='PT8H', -6 hour='-PT6H'.

.
File modification time is UTC time. Because only UTC time is provided in the XML file.
You can modify variable "TIMEDIFF" to change display of modify time.

About

Autoindex write in PHP. & Nginx custom autoindex with XSLT(use xslt_stylesheet).

Topics

Resources

Stars

14 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages