gan ane bikin virtual host di Xampp for windows ... Oct 1st 2013, 04:52, by Isan Sandra Fauzi | gan ane bikin virtual host di Xampp for windows
seperti ini di file host C:\WINDOWS\system32\drivers\etc\host udah ditambahin
127.0.0.1 belajar-htaccess.net.id
trus di C:\xampp\apache\conf\extra\httpd-vhosts.conf.bak
<VirtualHost *:80> ServerAlias belajar-htaccess.net.id DocumentRoot "D:/CI/belajar_htaccess/" ServerName belajar-htaccess.net.id <Directory "D:/CI/belajar_htaccess/"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny Allow from all </Directory> ErrorLog "logs/meatpro.log" CustomLog "logs/meatpro.log" combined LogLevel error </VirtualHost>
pas ane akses http://belajar-htaccess.net.id/ ko malah langsung redirect ke http://belajar-htaccess.net.id/xampp/ knpa ya gan ada yang tau? |
| | di c:/windows/system32/driver/etc/host => buat dulu nama servernya gan |
| | trus restart pc / log off, baru log in lagi. |
| | Pertama, filenya bukan host, tapi hosts . perhatikan, ada _s_ nya Kedua, file conf vhostnya bukan yang itu deh sepertinya. vhost.conf aja, ga pakai .bak :)
semoga membantu |
| | udah coba restart apachenya bang? |
| | di httpd.conf ditambah akses direktorinya,, biar nggan akses denied contoh: <Directory "D:\Master\OS"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny Allow from all </Directory> --------------------------------- trus di host windowsnya juga di tambah alamatnya 127.0.0.1 contoh-virtual.localhost |
| | restart Apachenya,, di Stop -> Start | |