Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision Both sides next revision
litespeed_wiki:config:autoindex [2015/07/20 18:55]
Michael Alegre created
litespeed_wiki:config:autoindex [2018/11/05 19:03]
Jackson Zhang
Line 1: Line 1:
 ====== How to Customize Auto Index Script ====== ====== How to Customize Auto Index Script ======
  
-The LiteSpeed web server supports automatic directory indexing when an index file is not present in a directory. It uses an external script to generate the index page on the fly. This provides you with maximum flexibility when creating the look and feel of your auto index page.  You can also customize your index page at a global level, or for each natively configured virtual host. +The LiteSpeed web server supports automatic directory indexing when an index file is not present in a directory. It uses an external script to generate the index page on the fly. This provides you with maximum flexibility when creating the look and feel of your auto index page.  You can also customize your index page at a global level, or for each natively configured virtual host,  or Apache vhost on a control panel environment
  
 +===== How LSWS implements auto index =====
 The default script paired with the installation package is a PHP script. However, you can create your own script using any language you like. The default script paired with the installation package is a PHP script. However, you can create your own script using any language you like.
  
Line 10: Line 11:
 /​autoindex/​default.php,​ has the same look and feel as Apache’s mod_autoindex. /​autoindex/​default.php,​ has the same look and feel as Apache’s mod_autoindex.
  
 +===== Set/​Customize Auto index page globally =====
   * To create your own Auto Index Page globally:   * To create your own Auto Index Page globally:
  <​code>​  <​code>​
Line 19: Line 21:
  Server -> General -> Index Files -> Auto Index URI: Set to “/​_autoindex/​myindex.php”  Server -> General -> Index Files -> Auto Index URI: Set to “/​_autoindex/​myindex.php”
 </​code>​ </​code>​
 +
 +===== Customer auto index page for native virtual host =====
         *  To customize your Auto Index Page for a particular virtual host if it is natively configured:         *  To customize your Auto Index Page for a particular virtual host if it is natively configured:
 <​code>​ <​code>​
Line 27: Line 31:
 You cannot customize the index file at the virtual host level if the virtual host is configured through an Apache configuration file. In that case, you can only apply a customized index file at the global level. You cannot customize the index file at the virtual host level if the virtual host is configured through an Apache configuration file. In that case, you can only apply a customized index file at the global level.
  
 +===== Customize auto index page for Apache virtual Host on a control panel envirment =====
 +Apache vhost is supported. For Apache vhost, the "Auto Index Uri" can be set in .htaccess with LiteSpeed specific directive ''​AutoIndexUri /<​my_index_script_uri>''​.
  • Admin
  • Last modified: 2024/03/28 19:33
  • by Lisa Clarke