can't find httpd.conf

General support questions
Post Reply
Posts: 1
Joined: 2019/04/29 16:19:24

can't find httpd.conf

Post by direktor » 2019/05/09 06:54:11


I'm trying to configure domains to point to each respective folder on server. I heard this can be done by configuring virtual host file. But I can't find it on CentOS 6. Can someone tell me where it is please?

Regards, Bogomil

User avatar
Forum Moderator
Posts: 29430
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: can't find httpd.conf

Post by TrevorH » 2019/05/09 12:31:38

You'll find it in /etc/httpd/conf/httpd.conf but there is no automatic set up of vhosts like there is on Debian et al. You have to set it all up yourself. It's recommended that you avoid modifying httpd.conf itself and instead place new config files in /etc/httpd/conf.d/. Some people put a file there that just does an include /etc/httpd/vhosts.d/ or you can just use /etc/httpd/conf.d itself for your vhost files.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 6 - General Support”