Results 1 to 8 of 8

Thread: apache problem

  1. #1
    Join Date
    Sep 2013
    Beans
    20

    apache problem

    Where is defined in the Apache2 server default download an html file name and location, and the definition of what that is?

  2. #2
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: apache problem

    Moved to Server Platforms.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  3. #3
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: apache problem

    The default location for HTML files in the default virtual host is /var/www

    You can change that by making a new directory and pointing to it with the DocumentRoot configuration directive.

  4. #4
    Join Date
    Sep 2013
    Beans
    20

    Re: apache problem

    hi, i was searching in internet answer for that question. is it possible that Apache configuration is in / etc / httpd / conf / httpd.conf or / etc/apache2/httpd.conf configuration file?

  5. #5
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: apache problem

    Neither. Most of the information you will find on the net is outdated. It is largely written for Apache 1.3.x and you are running Apache2.x, which has a very different configuration layout. In Apache2 httpd.conf should be left alone.

    As I mentioned in the other thread, you have a default configuration for a default virtual host. That default file is /etc/apache2/sites-enabled/000-default.conf
    You can change that file if you wish. If you want more virtual hosts, add more configuration files in /etc/apache2/sites-available/ and then turn them on with a2ensite. It's a little fancier than it used to be with Apache 1.3 but it scales much better. If you want something simpler to configure, you might try nginx instead of Apache2.

  6. #6
    Join Date
    Sep 2013
    Beans
    20

    Re: apache problem

    ok, now i understand thanks a lot

  7. #7
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    searching online

    One thing to add is that when you search for material online about Apache, make sure you are looking for Apache 2. The configuration files changed quite a bit between 1.3 (the old version) and 2.x (the new version). The configuration directives on the inside are about the same, but the files have been divided up to make it easier to manage multiple virtual hosts on the same machine, each with different owners and adminsitrators.

  8. #8
    Join Date
    Aug 2013
    Beans
    4,941

    Re: searching online

    Quote Originally Posted by Lars Noodén View Post
    One thing to add is that when you search for material online about Apache, make sure you are looking for Apache 2. The configuration files changed quite a bit between 1.3 (the old version) and 2.x (the new version). The configuration directives on the inside are about the same, but the files have been divided up to make it easier to manage multiple virtual hosts on the same machine, each with different owners and adminsitrators.
    Is it? I think the dividing up is a Debian modification. Apache2 is Redhat/Fedora/CentOS still have the standard configuration layout.

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
  •