คำถามติดแท็ก server-side-includes

1
SSI รวมถึงไม่ทำงานบน Debian ด้วย Apache
ฉันกำลังพยายามให้ SSI ทำงานบน Debian ที่ใช้ Apache แต่.shtmlไฟล์ไม่ได้ถูกแยกวิเคราะห์ จากไฟล์ PHP ด้วยphpinfo()ฉันจะเห็นว่าต่อไปนี้ปรากฏขึ้นในส่วนโมดูลโหลด: mod_mime_xattr mod_mime mod_mime_magic ใน/etc/apache2/mods-enabled/mime.confฉันมี (เหนือสิ่งอื่นใด): AddType text/html .shtml AddOutputFilter INCLUDES .shtml ใน/etc/apache2/sites-enabled/domain.com.conf(สำหรับโฮสต์เสมือนในคำถาม) ฉันมี: <Directory /home/username/public_html> Options +Includes allow from all AllowOverride All </Directory> และสำหรับการวัดที่ดีฉันได้เพิ่มสิ่งต่อไปนี้เช่นกัน: <Directory /> Options +Includes </directory> ใน.htaccessไฟล์ของผู้ใช้ฉันพยายามเพิ่ม: Options +Includes AddType text/html shtml AddHandler server-parsed shtml ดูเหมือนจะไม่มีอะไรทำงาน ฉันจะแก้ไขข้อบกพร่องนี้ได้อย่างไร …
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.