OpenLiteSpeed .htaccess ไม่ทำงาน | 1412 https://xvlnw.com I'm on my way Mon, 15 Feb 2021 18:24:01 +0000 th hourly 1 https://wordpress.org/?v=5.5.13 Auto Restart OpenLiteSpeed เมื่อมีการเปลี่ยน Rule ใน .htaccess ใน DirectAdmin https://xvlnw.com/topic/805 Mon, 15 Feb 2021 18:23:50 +0000 https://xvlnw.com/?p=805 ข้อเสียอย่างหนึ่งของ OpenLiteSpeed คือ หากเรามีการอัพเดตข้อมูลในไฟล์ .htaccess และต้องการให้มันทำงาน เราจะต้องทำการ Restart OpenLiteSpeed ทุกๆครั้ง เพื่อทำการ Reload ค่าใหม่ กรณีใช้งาน OpenLiteSpeed กับระบบ DirectAdmin ผู้ดูแลระบบที่เจอปัญหาผู้ใช้งานแก้ไข .htaccess แล้วไม่ทำงาน สามารถตั้ง Cronjob เพ…

The post Auto Restart OpenLiteSpeed เมื่อมีการเปลี่ยน Rule ใน .htaccess ใน DirectAdmin first appeared on 1412.]]>
ข้อเสียอย่างหนึ่งของ OpenLiteSpeed คือ หากเรามีการอัพเดตข้อมูลในไฟล์ .htaccess และต้องการให้มันทำงาน เราจะต้องทำการ Restart OpenLiteSpeed ทุกๆครั้ง เพื่อทำการ Reload ค่าใหม่

กรณีใช้งาน 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; fi
The post Auto Restart OpenLiteSpeed เมื่อมีการเปลี่ยน Rule ใน .htaccess ใน DirectAdmin first appeared on 1412.]]>