Where to put Apache vhost configuration (httpd-vhosts.conf or httpd.conf)? -



Where to put Apache vhost configuration (httpd-vhosts.conf or httpd.conf)? -

i inquire simple question. studying vhost configuration confused should set vhosts configuration?

i have file has name httpd-vhosts.conf , httpd.conf seek set configuration in these 2 files different web projects. , after restarted wampserver can access them. fine if place vhost entries in file httpd-vhosts.conf ? or should place in httpd.conf

there no right or wrong. apache has 1 global config file, typically default or specified in startup script.

this file uses 1 or more secondary config files , directories. different linux distributions utilize different default include directories.

on centos think illustration set file (named domain can anything) in /etc/httpd/conf.d/example-com.conf: http://wiki.centos.org/tipsandtricks/apachevhostdir

apache

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -