Is Your httpd.conf Missing or Empty? My One Ubuntu 13.10 Server’s httpd.conf is also missing! It is supposed to be missing! It is designed to be missing! In a comment we have received exactly this question – “My server is missing the httpd.conf file. I cannot find on my server anywhere, even on the image saved. Is there any way I can rebuild this or have I killed yet another server…”
There are lot of misunderstandings with Apache Webserver Software; which we believe to be the root cause of inviting other web server softwares; which are probably not so much tweak able like Apache. Later we performed a search on httpd.conf Missing issue and found to be a very common complain!
Understanding the httpd.conf Missing or Empty Phenomenon
Historically, if we installed Apache2 via sudo-apt-get install command, we used to get an entirely different set of files and directory structures than if we download the binaries, unzip it and build it manually. If we download from the Apache site, we used to get an
httpd.conf is usually the main configuration file for the Apache web server. This is the case for Red Hat Enterprise Linux (RHEL), CentOS and our OS X. But not on Ubuntu and certain deb based Linux.
httpd.conf is usually non-existent on Ubuntu (specifically). It has been many versions ago since it was not used anymore, but still required for legacy reasons. As of 12.10
https.conf it is not there anymore. Everything is now handled from the /etc/apache2 subdirectories and conf files. The best resource for Ubuntu is :
For Apache, there is actually huge resource, it is so huge; difficult to remember where you were, if you were reading something and forgot to bookmark :
As Ubuntu, Debian or whatever OS is actually managing the HTTP server software with aptitude, practically; we should give preference to the OS manual over the Software manual (it is written for ALL). If you want to build in the traditional way, here is it :
Probably These Are Not The Reasons For What You Were Complaining About httpd.conf Missing or Empty
You were reading some guide, may be older; where you were following some tricks or tips and ultimately understood that your httpd.conf is either missing or empty. So, right now if installed with apt-get install; we have the file apache2.conf at :
And mods under :
We can add any new mod file and run :
sudo a2enmod modname
sudo service apache2 restart
This is illustration like book reading :
In order to enable it. Actually it keeps the things organized. If you want to use
httpd.conf file (which is user’s configuration), edit the apache2.conf file and save it :
# Edit this line to enable
# write out and exit, restart apache
# write there
Now, a good thing for you :
We guess it solves the httpd.conf Missing or Empty problem.
Follow the Author of this article :