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 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

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 :

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -