กรณีใช้งาน OpenLiteSpeed กับระบบ DirectAdmin ผู้ดูแลระบบที่เจอปัญหาผู้ใช้งานแก้ไข .htaccess แล้วไม่ทำงาน สามารถตั้ง Cronjob เพื่อให้เช็คได้ดังนี้ครับ
*/3 * * * * root if ! find /home/*/domains/*/*_html/ -maxdepth 2 -type f -newer /usr/local/lsws/cgid -name '.htaccess' -exec false {} +; then /usr/local/lsws/bin/lswsctrl restart; fi* * root if ! find /home/*/domains/*/*_html/ -maxdepth 2 -type f -newer /usr/local/lsws/cgid -name '.htaccess' -exec false {} +; then /usr/local/lsws/bin/lswsctrl restart; fiThe post Auto Restart OpenLiteSpeed เมื่อมีการเปลี่ยน Rule ใน .htaccess ใน DirectAdmin first appeared on 1412.]]>