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
Site Admin
Posts: 33202
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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply