Page 1 of 1

can't find httpd.conf

Posted: 2019/05/09 06:54:11
by direktor
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

Re: can't find httpd.conf

Posted: 2019/05/09 12:31:38
by TrevorH
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.