... # Virtual hostsเอาเครื่องหมาย # หน้า Include conf/extra/httpd-vhosts.conf
Include conf/extra/httpd-vhosts.conf
2. เพิ่มไดเร็คทีฟ Directory ลงไปดังนี้
... <Directory "D:/wpdev"> Order allow,deny Allow from all </Directory>เสร็จแล้ว save ไฟล์ซะ
3. แก้ไขไฟล์ C:\AppServ\Apache2.2\conf\extra\httpd-vhosts.conf
เพิ่มข้อมูลลงไปดังนี้
... <VirtualHost *:80> DocumentRoot "D:/wpdev" ServerName wpdev </VirtualHost>เสร็จแล้วบันทึกไฟล์
4. แก้ไขไฟล์ C:\Windows\System32\drivers\etc\hosts (ไม่มีนามสกุลไฟล์) ดังนี้
... 127.0.0.1 wpdevเสร็จแล้วบันทึกไฟล์
5. Restart Apache หรือถ้า Restart เครื่องไปเลย ฮิฮิ
No comments:
Post a Comment