ingin costum apache di centos...
salah satunya ingin merubah dockument root
[root@apache ~]# vi /etc/httpd/conf/httpd.conf
maka akan keluar setingan httpd.conf
kemudian cari dengan mengetikan "?" kemudian ketik DocumentRoot "
untuk nextnya jangan teken enter,.. teken huruf "N" sampai target DocumentRootnya ketemu..
jika sudah bertemu nah langsung aja exekusi :P
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
#DocumentRoot "/var/www/html" <--- ini defaultnya
DocumentRoot "/home/tester/" <--- setelah di rubah
#
kemudian disafe dan jangan lupa di restart apachenya biar efek perubahannya keliatan...
Tidak ada komentar:
Posting Komentar