How to configure Apache (sites-available vs httpd.conf)

Posted by Edan Maor on Server Fault See other posts from Server Fault or by Edan Maor
Published on 2010-12-26T16:45:44Z Indexed on 2010/12/26 16:55 UTC
Read the original article Hit count: 413

Filed under:
|
|
|

Hi,

I'm brand new to Apache so this might be a stupid question.

I've been trying to follow a few basic tutorials explaining how to get Apache up and running (on ubuntu, running on Amazon). I've mostly come up blank, because all the tutorials told me to configure httpd.conf (to add DocumentRoot, etc.).

I've now stumbled across one tutorial that told me to add site configurations to the sites-available directory (under /etc/apache), and then symlink to it from sites-enabled. Configuring this way seems to work.

But now I'm confused - how am I supposed to configure Apache? Most tutorials still seem to say that I should be using httpd.conf. Which one should I be using? What's the difference? Why are all the tutorials "wrong" (if they are)?

Thanks!

© Server Fault or respective owner

Related posts about apache

Related posts about ubuntu