autoindex php handler

#1
Hi,

I'm using litespeed on directadmin system (Apache configuration)
would you please let me know following questions about litespeed autoindex system:
1- which user autoindex script (/usr/local/lsws/share/autoindex/default.php) is run by in each virtual account?
2- where i can set (or change) the php handler for autoindex php file ? (seems that the default handler is lsphp5 and I plan to change it to another handler)

thanks,
 
#3
Hi,
Would you please let me know if it's possible to change the php handler for "autoindex" separately ?
I mean if I can have a dedicated php handler for "autoindex" ?
 
#5
Hi,
I'm using Litespeed on my directadmin machine, would you please let me know if the configuration of this file "/etc/httpd/conf/extra/httpd-autoindex.conf" works for litespeed as well?
I thought that Litespeed has its own directory index system,
thanks,
 
#7
would you please make sure about that ?
I know that the apache configuration is used in such cases,
but I think litespeed uses some of its own modules like "autoindex"
 

NiteWave

Administrator
#8
you're right.

did tests on lsws 5.1.11 without control panel. there are 2 php handlers: lsphp5, lsphp71.
lsphp71 is set as default handler.

when access a directory, it shows "X-Powered-By: PHP/7.1.0" as one response header
after create following .htaccess
Code:
/usr/local/lsws/share/autoindex>cat .htaccess 
AddHandler application/x-httpd-php5 php
the response header change to "X-Powered-By: PHP/5.6.12"
 
Top