What needs to be in httpd.conf for cPanel?

Specks

Well-Known Member
Jul 3, 2004
68
0
156
I'm trying to rebuild httpd.conf just to clean it up. I noticed when you use /scripts/rebuildhttpdconf it doesn't put in NamedVirtualHost or the Aliases you need. So besides the NamedVirtualHost and the Aliases. What else needs to be in the conf file?

How would one rebuild the httpd.conf file completely without hastle?

Thanks,
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,221
4
193
Minneapolis, MN
Specks said:
I'm trying to rebuild httpd.conf just to clean it up. I noticed when you use /scripts/rebuildhttpdconf it doesn't put in NamedVirtualHost or the Aliases you need. So besides the NamedVirtualHost and the Aliases. What else needs to be in the conf file?

How would one rebuild the httpd.conf file completely without hastle?
Httpd.conf is the configuration file included in the Apache server. This file, basically, is everything to Apache. Knowing how to use it and how to edit it is extremely important in making Apache unique to your server as well as to keeping the server both efficient and secure.

Through httpd.conf, you can configure Apache server characteristics like the server name, the port on which the server will run, the threading and process spawn limits, the modules that Apache loads, the handlers for various types of files, virtual directories and hosts, mime-types, access control, etc. Luckily, doing all of these things in the httpd.conf file is incredibly easy. Although httpd.conf file is well explained and easy to configure, I suggest you don’t play with the syntax, unless you are very comfortable with Apache server.