Apache 2 Configuration

Derek Broughton news at pointerstop.ca
Sat Jun 21 20:49:20 UTC 2008

Santiago Hernández Lemes wrote:

> Hello everybody,
> I have just instaled Lamp on my Ubuntu Hardy, and I want to configure
> Apache, as I know, the Apache configuration file is located at
> /etc/apache2. The problem is, thay inside the file, I have not found
> nothing wrote, the file is completely empty, so I dont understand how
> could it work (If i type localhost everything is ok in Firefox).

Funny - it shouldn't be empty.  apache2.conf contains quite a lot, and
httpd.conf should contain:

$ cat /etc/apache2/httpd.conf
# This is here for backwards compatability reasons and to support
#  installing 3rd party modules directly via apxs2, rather than
#  through the /etc/apache2/mods-{available,enabled} mechanism.
#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so

Which should be pretty self-explanatory (and in case it isn't - means you
put module configs in /etc/apache2/mods*/).  Other config options are
generally included via include statements in apache2.conf

More information about the ubuntu-users mailing list