Find the answer to your Linux question:
Results 1 to 3 of 3
How do you change the default location where Apache looks for the default root (html, etc)? By default in httpd2.conf it is set for /var/www/html as the root html directory, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2004
    Posts
    11

    Apache inquiry


    How do you change the default location where Apache looks for the default root (html, etc)?

    By default in httpd2.conf it is set for /var/www/html as the root html directory, I have modified it to use another location /home/www applied the changes and then restarted Apache.

    At that point I recieve a 403 error message (403 Forbidden) I believe is the message. I change it back to the default /var/www/html and it works.

    Any ideas?

    voth

  2. #2
    Just Joined!
    Join Date
    Nov 2002
    Location
    USA
    Posts
    99
    Most likely it is a file access permission that is causing the problem. Is the /home/www directory readable and executable for all users?

  3. #3
    Linux Engineer Giro's Avatar
    Join Date
    Jul 2003
    Location
    England
    Posts
    1,219
    they must be world readable eg
    Code:
    chmod 644 index.html

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •