Google

Internet

Jalan-jalan

Network

Ponsel

Home » PHP

Virtual Host pada server lokal

Submitted by kadek on Friday, 13 October 2006No Comment

  1. Buka httpd.conf pada direktori C:/Apache2/conf/ (Win XP).
  2. Tambahkan pada httpd.conf

    • NameVirtualHost 127.0.0.1
    • ServerAdmin admin@virtualhost.com
    • DocumentRoot D:\www\dir\wirya.com
    • ServerName www.virtualhost.com
    • ServerAlias www.virtualhost.com *.www.virtualhost.com
  3. Sesuaikan dengan document root Anda/ folder yang menyimpan file yang akan diakses lewat virtual host.
  4. buka file host pada direktori C:/Windows/System32/Driver/etc/
  5. Tembahkan ini 127.0.0.1 www.virtualhost.com
  6. Restart Apache Anda, Start menu->Programs->Apache HTTP Server 2.0.58->Control Apache Server->Restart
  7. Buka browser, ketikkan http://www.virtualhost.com, akan tampil sebuah halaman yang berada
  8. Selesai.

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.