can't find httpd.conf

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

can't find httpd.conf

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

Hello,

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
TrevorH
Forum Moderator
Posts: 26874
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 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 6 - General Support”