Setting Root Directory Http to Own Home Directory
- Disabled selinux:
# vim /etc/selinux/config
SELINUX=disabled
ESC => :wq - Restart your PC
- Config httpd.conf:
# vim /etc/httpd/conf.d/welcome.conf
and mark with #
#<LocationMatch "^/+$">
# Options -Indexes
# ErrorDocument 403 /error/noindex.html
#</LocationMatch>
ESC => :wq
# vim /etc/httpd/conf/httpd.conf
User anwar
Group anwar
.
.
DocumentRoot "/home/anwar/public_html"
.
.
<Directory "/home/anwar/public_html">
ESC => :wq - Restart httpd:
# service httpd restart - FINISH
0 comments:
You can post comment with english language or indonesia language.
Anda bisa memberikan komentar dalam bahasa inggris atau bahasa indonesia.