Cara atur untuk akses dari cpanel atur path domain/subdomain agar mengarah ke: /public_html/[nama domain/subdomain]/public Cara atur untuk akses dari server local 1. XAMPP 🔧 1. Aktifkan Virtual Host Buka file: C:\xampp\apache\conf\extra\httpd-vhosts.conf Tambahkan di paling bawah: ServerName sekolah.local DocumentRoot "C:/xampp/htdocs/sekolah/public" AllowOverride All Require all granted ErrorLog "logs/sekolah-error.log" CustomLog "logs/sekolah-access.log" common 🧠 2. Aktifkan VirtualHost di Apache Buka: C:\xampp\apache\conf\httpd.conf Pastikan baris ini TIDAK dikomentari: Include conf/extra/httpd-vhosts.conf (jangan ada tanda # di depannya) 🌐 3. Edit file hosts Windows Buka Notepad sebagai Administrator, lalu buka: C:\Windows\System32\drivers\etc\hosts Tambahkan: 127.0.0.1 sekolah.local Simpan. 🔁 4. Restart Apache Stop Apache Start Apache