อัพ Blog ตัวเองกลับมาใหม่ ตอนนี้ใช้ Raspberry Pi 3 ติดตั้ง
– Raspbian
– Nginx
– WordPress
ก็ทำงานได้ปรกติดี (เพราะยังไม่มี Blog ใหม่สักอัน) แต่พอลองเขียน Blog แรกแล้วตัว Permalink มันเรียกไปไม่ถูกที่ เลยไปค้นๆ ดูใน Google ก็เจออันนี้ http://nginxlibrary.com/wordpress-permalinks/ เข้า สรุปง่ายๆ ให้ไปเพิ่ม
try_files $uri $uri/ /index.php?$args;
ใน nginx.conf ส่วนของ Location ให้ได้ประมาณนี้
location / {
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$args;
}
แล้วก็ตามด้วย
# sudo systemctl reload nginx.server
เรียบร้อยแบบเร็วๆ
@esz