ชั้น 29 ออฟฟิศเศส แอท เซ็นทรัลเวิลด์

999/9 พระราม 1 กรุงเทพฯ 10330

บริการตลอด 24 ชั่วโมง

ทุกวัน ไม่เว้นวันหยุด

0-2107-3466

โทรเลยดิจะรออะไร

Home DirectAdmin User Level วิธีเปลี่ยน Docroot (Document Root) ของ Subdomain ใน DirectAdmin

วิธีเปลี่ยน Docroot (Document Root) ของ Subdomain ใน DirectAdmin

Change Docroot subdomain DirectAdmin

เมื่อเว็บไซต์มีการใช้งานหลาย Subdomain เช่น blog.example.com, shop.example.com หรือ dev.example.com การกำหนด Document Root ให้แต่ละ Subdomain ชี้ไปยังโฟลเดอร์ที่เหมาะสม จะช่วยให้จัดการไฟล์เว็บไซต์ได้เป็นระเบียบมากขึ้น และลดความเสี่ยงจากการแก้ไขไฟล์ผิดตำแหน่ง โดยใน DirectAdmin สามารถเปลี่ยนได้ง่าย ๆ ตามขั้นตอนต่อไปนี้

คลิกที่ Subdomain Management ในหมวด ACCOUNT MANAGER

Account Manager dashboard; Subdomain Management tile is highlighted (02). Other options shown include Domain Setup, DNS Management, SSL Certificates, FTP, Databases, Domain Pointers, Site Redirection, Hotlinks Protection, and PHP Settings.

คลิกที่ไอคอน Change ใน Docroot ของ subdomain ที่ต้องการเปลี่ยน

Hosting panel showing the docroot path /domains/demo.yourdomain.com/public_html with an Edit (pencil) icon highlighted beside it.

กำหนด path ใหม่ที่ต้องการเปลี่ยน จากนั้นคลิกที่ SAVE

Popup to change Document Root: shows an input with /domains/demo.yourdomain.com/public_html, with a Close option and a green SAVE button to confirm.

ระบบจะแจ้งว่าได้อัปเดต Docroot ของ subdomain ดังกล่าวแล้ว

Green Success banner with a checkmark at the bottom of the screen; the UI shows a subdomain management panel with an Add Subdomain button and a row listing a domain with PHP 8.3 as the version.

หากคุณกำลังมองหาเว็บโฮสติ้งที่ใช้งานง่ายและปลอดภัย สามารถดูรายละเอียดแพ็กเกจ Web Hosting ของเราได้ที่
👉 https://www.hostatom.com/web-hosting