Results 1 to 2 of 2

Thread: Where do I set "DocumentRoot" in apache2 on 11.10?

  1. #1
    Join Date
    Feb 2012
    Beans
    70

    Where do I set "DocumentRoot" in apache2 on 11.10?

    Hi guys.
    I am struggling to set my "DocumentRoot" on my apache2 server, running atop 11.10 x64. Would someone show me the syntax, and what file I need to edit, as Google just throws up more results than my brain can handle, and they ALL conflict.

    Thanks.


    {{EDIT}}

    It's okay; I worked it out. You do:

    Code:
    sudo gedit /etc/apache2/sites-available/default
    And change it there. Boy, they keep shuffling things around! lol ^_^
    Last edited by nikonian; February 6th, 2012 at 12:57 AM.

  2. #2
    Join Date
    Aug 2009
    Location
    West Sussex, England
    Beans
    117
    Distro
    Ubuntu

    Re: Where do I set "DocumentRoot" in apache2 on 11.10?

    You get a lot of different answers because apache2 can be configured in so many ways. The default file on Debian based systems has been /etc/apache2/site-available/default for a long time though.
    Richard Holloway
    PHP Developer and System Administrator
    http://richardjh.org

Bookmarks

Posting Permissions

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