w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Where to put Apache vhost configuration (httpd-vhosts.conf or httpd.conf)?

There is no right or wrong. Apache has one global config file, which typically is the default or specified in the startup script.

This file then uses one or more secondary config files and directories. Different Linux distributions use different default include directories.

On CentOS I think for example you would put a file (named like your domain but can be anything) in /etc/httpd/conf.d/example-com.conf: http://wiki.centos.org/TipsAndTricks/ApacheVhostDir

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.