Setting Root Directory Http to Own Home Directory


  1. Disabled selinux:
    # vim /etc/selinux/config
    SELINUX=disabled
    ESC => :wq
  2. Restart your PC
  3. 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
  4. Restart httpd:
    # service httpd restart
  5. FINISH

Install Server Networking Programming

Support you how to install server, networking and Programming Easy

0 comments:

You can post comment with english language or indonesia language.
Anda bisa memberikan komentar dalam bahasa inggris atau bahasa indonesia.