#1
  1. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,664
    Rep Power
    171

    Httpd.conf in Ubuntu,,,apache2 is replaced by httpd in CentOs


    Hi
    Noob, be nice

    1 - In Ubuntu I see there is no httpd.conf. It looks like an optional file (Apache does not need it to run). Do I need to create it? It's only for user specific settings, right? Does it over-write main config fine /etc/apach2/apache2.conf if it exists. Which brings me to this question:
    Why not just editting /etc/apach2/apache2.conf?

    2 - What edits should be done in /etc/apach2/apache2.conf and which edits should happen in httpd.conf? How many types of config options are there? Trying to make sense of config options.

    3 - Why in CentOs there is no Apache2? Instead it is called httpd! I know someones gonna say differnet distro but there should be a better reason to that?

    Thanks
  2. #2
  3. Wiser? Not exactly.
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    May 2001
    Location
    Bonita Springs, FL
    Posts
    5,947
    Rep Power
    4033
    Originally Posted by English Breakfast Tea
    1 - In Ubuntu I see there is no httpd.conf. It looks like an optional file (Apache does not need it to run). Do I need to create it? It's only for user specific settings, right? Does it over-write main config fine /etc/apach2/apache2.conf if it exists. Which brings me to this question:
    Why not just editting /etc/apach2/apache2.conf?
    Ubuntu splits the configuration up across multiple files rather than one massive httpd.conf file. apache2.conf is sort of like the core configuration file. There's also ports.conf to determine which network addresses and ports apache listens on, and various files in sites-available to setup each of your individual virtual hosts (with symlinks in sites-enabled to determine which are active). A similar setup exists for mods-available and mods-enabled to determine which apache modules are loaded.

    Originally Posted by English Breakfast Tea
    2 - What edits should be done in /etc/apach2/apache2.conf and which edits should happen in httpd.conf? How many types of config options are there? Trying to make sense of config options.
    Any edits you want to make on a global level could be put in apache2.conf. Read the existing files contents to get an idea of what is currently configured there. If you edit it at all, probably you'd just be tweaking the existing directives like how many threads/processes apache uses.


    Originally Posted by English Breakfast Tea
    3 - Why in CentOs there is no Apache2? Instead it is called httpd! I know someones gonna say differnet distro but there should be a better reason to that?
    There isn't. Whoever manages the package for ubuntu decided to name it apache2. Whoever manages the package for CentOS decided to call it httpd. The CentOS name probably comes from the fact that by default the executable for apache is named httpd.

    At lot of things like that are just a simple 'different distro, different way of doing it'. Everyone has their own way of doing things. This includes the folks who maintain the various distros.
    Recycle your old CD's, don't just trash them



    If I helped you out, show some love with some reputation, or tip with Bitcoins to 1N645HfYf63UbcvxajLKiSKpYHAq2Zxud
  4. #3
  5. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,439
    Rep Power
    4539
    Redhat has called apache httpd since the pre-Fedora days.

    Configuration on redhat httpd servers is accomplished with modular configuration files located in /etc/httpd/conf.d/ and /etc/httpd/conf.modules.d/ so you don't need to re-edit httpd.conf whenever you want to make a change to your server configuration. You simply create a new .conf file with the desired changes and then reload your httpd daemon. Using this architecture usually you never need to actually restart the apache service.
    ======
    Doug G
    ======
    Bartender to Rene Descartes "have another beer?" Descartes: "I think not" and he vanished.
    --Alfred Bester

IMN logo majestic logo threadwatch logo seochat tools logo