Buka file C:\AppServ\Apache2.2\conf\httpd.conf
Hilangkan tanda pagar pada baris 203
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
Menjadi
LoadModule vhost_alias_module modules/mod_vhost_alias.so
Baris 561
#Include conf/extra/httpd-vhosts.conf
Menjadi
Include conf/extra/httpd-vhosts.conf
Buka file C:\AppServ\Apache2.2\conf\extra\httpd-vhosts.conf
ServerAdmin webmaster@websaya.com
DocumentRoot "C:\AppServ\www\websaya.com"
ServerName www.websaya.com
ServerAlias websaya.com
ErrorLog "logs/localhost-error_log"
CustomLog "logs/localhost-access_log" common
ServerAdmin webmaster@localhost
DocumentRoot "C:\AppServ\www"
ServerName localhost
ErrorLog "logs/localhost-error_log"
CustomLog "logs/localhost-access_log" common
Buka file C:\Windows\System32\drivers\etc\hosts
ubah seperti berikut
# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
127.0.0.1 websaya.com
127.0.0.1 www.websaya.com
# ::1 localhost
Hilangkan tanda pagar pada baris 203
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
Menjadi
LoadModule vhost_alias_module modules/mod_vhost_alias.so
Baris 561
#Include conf/extra/httpd-vhosts.conf
Menjadi
Include conf/extra/httpd-vhosts.conf
Buka file C:\AppServ\Apache2.2\conf\extra\httpd-vhosts.conf
ServerAdmin webmaster@websaya.com
DocumentRoot "C:\AppServ\www\websaya.com"
ServerName www.websaya.com
ServerAlias websaya.com
ErrorLog "logs/localhost-error_log"
CustomLog "logs/localhost-access_log" common
ServerAdmin webmaster@localhost
DocumentRoot "C:\AppServ\www"
ServerName localhost
ErrorLog "logs/localhost-error_log"
CustomLog "logs/localhost-access_log" common
Buka file C:\Windows\System32\drivers\etc\hosts
ubah seperti berikut
# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
127.0.0.1 websaya.com
127.0.0.1 www.websaya.com
# ::1 localhost
ARTIKEL TERKAIT:
Tidak ada komentar:
Posting Komentar