Tuesday, October 11, 2011

การสร้าง Virtual Host ใน Apache Web Server

วิธีการ Setup VirtualHost ใน Apache
1. เปิดไฟล์ httpd.conf แล้วแก้ไข Include conf/extra/httpd-vhosts.conf ให้เปิดออก
...
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
...
2. แก้ไขไฟล์ httpd-vhosts.conf โดยการเพิ่ม Virtual Host เข้าไปดังนี้
...

    DocumentRoot  "C:/AppServ/www/lab"
    ServerName lab

...
3. Restart Apache

No comments:

Post a Comment