Where to put Apache vhost configuration (httpd-vhosts.conf or httpd.conf)? -
I just ask a simple question. I am studying vhost configuration, but I am confused why should I keep my vhosts configuration properly?
I have a file named wrong. Apache has a global config file, which is usually default or specified in the startup script. This file then uses one or more secondary config files and directories. Different Linux distributions are included in different directories. I think on CentOS that for example you put a file in /etc/httpd/conf.d/example-com (Named as your domain, but anything could happen) .conf : httpd-vhosts.conf and
Httpd.conf I try to keep my configuration in these 2 files but After restarting various Web projects and my Wampserver, I can access them. Is it okay if I put all my vhost entries in the file
httpd-vhosts.conf ? Or should I put it in the
httpd.conf
Comments
Post a Comment