sites-available sites-enabled

General support questions
Post Reply
User avatar
kysil
Posts: 4
Joined: 2015/02/15 21:07:45
Location: Kyiv, UA
Contact:

sites-available sites-enabled

Post by kysil » 2015/02/15 21:21:41

Hello,
What name should have these directories: sites-available & sites-enabled by default in CentOS version 7?

Thank you!

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: sites-available sites-enabled

Post by TrevorH » 2015/02/15 22:13:34

That concept belongs to Debian and its derivatives. CentOS doesn't use it out of the box, you'd have to set it up yourself and work out a method of making it work.
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

User avatar
kysil
Posts: 4
Joined: 2015/02/15 21:07:45
Location: Kyiv, UA
Contact:

Re: sites-available sites-enabled

Post by kysil » 2015/02/15 23:09:33

Thank U! I thought that there is a canonical directory tree.
I will use as vhosts for domains.
/etc/httpd/conf/vhosts/domain1/domain1.com.conf
/etc/httpd/conf/vhosts/domain2/domain2.com.conf

and /etc/httpd/conf/httpd.conf with
IncludeOptional conf.d/*.conf
Include conf/vhosts/
Listen 80
Listen 443

It will be correct? :)

User avatar
igorek24
Posts: 90
Joined: 2013/11/13 06:11:37

Re: sites-available sites-enabled

Post by igorek24 » 2015/02/16 23:35:34

Hi kysil,
You can add Vertual hosts to a /etc/httpd/conf/httpd.conf config file or simply create /etc/httpd/conf.d/domain1.com.conf and /etc/httpd/conf.d/domain2.com.conf files. I find it easier to keep all VH's in a same file and create an aliase in /etc/httpd/conf.d/. For exemple phpMyAdmin aliase I would create in /etc/httpd/conf.d/phpMyAdmin.conf.

Post Reply