<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(11,83,148)">Keith, In CentOS /conf.d/ is specifically designated for this purpose with "Include /etc/httdf/conf.d/*.conf" added to the end of the httpd.conf file. That said it does not HAVE to go there. I have architect-ed a dev environment for an organization where the site developers are not familiar with Linux based systems but need access the vhost directives so that they can perform mod_rewrites and redirects for simpler static sites. In order to make this possible and to keep individuals out of the /etc/ directory altogether I have put the vhosts in /var/httpd-conf/ before.<br>
<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(11,83,148)">Another factor is server provisioning. If you are using a provisioner like Vagrant with BASH Shell scripts to build web servers on the fly, It is easier to use cat or echo to append the Includes stanza at the end of the conf file rather the sed -i to rewrite existing lines. <br>
<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(11,83,148)">Just my two cents. <br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(11,83,148)">
<br> <br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 13, 2014 at 3:01 PM, Ed <span dir="ltr"><<a href="mailto:plug@0x1b.com" target="_blank">plug@0x1b.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In Fedora, if you don't want updates to the app (Apache in this case)<br>
to overwrite your configurations, you put them in /etc/httpd/conf.d<br>
one config file per vhost, and all the other none core config files<br>
(php, perl, dav_svn, etc) - you may need to preface them with numbers<br>
to have them load in the proper order. Some break out all module<br>
invocations into one file and have it be first.<br>
<br>
Apache reads the primary config file /etc/httpd/conf/httpd.conf and<br>
appends all of the *.conf files in /etc/httpd/conf.d to make the<br>
complete configuration of your server.<br>
<br>
That's how Fedora 20 does it, CentOS might do it that way too.<br>
<div class="HOEnZb"><div class="h5"><br>
On Fri, Jun 13, 2014 at 1:49 PM, Michael Torres <<a href="mailto:matorres124@gmail.com">matorres124@gmail.com</a>> wrote:<br>
> My experience is the config for v hosts is at the bottom of the file. That<br>
> is for apache 2.2.<br>
><br>
> On Jun 13, 2014 1:25 PM, <<a href="mailto:techlists@phpcoderusa.com">techlists@phpcoderusa.com</a>> wrote:<br>
>><br>
>> Thank you everyone for your help!!<br>
>><br>
>> I'm running Apache 2.2 on CentOS 6.5.<br>
>><br>
>> I was told once to put the vhost file in the config path so that during<br>
>> future upgrades I do not lose my configuration.<br>
>><br>
>> My main concern is where the config files are included in the httpd.conf<br>
>> file and how that might effect or be effected by directives that come after<br>
>> the vhosts.<br>
>><br>
>><br>
>><br>
>><br>
>> On 2014-06-13 15:03, Michael Torres wrote:<br>
>>><br>
>>> Depends on the version of apache you are using. I use 2.2 and I add<br>
>>> it to the https.conf file..,no issues<br>
>>> On Jun 13, 2014 12:53 PM, <<a href="mailto:techlists@phpcoderusa.com">techlists@phpcoderusa.com</a>> wrote:<br>
>>><br>
>>>> I am wondering what the proper way to add vhosts to the Apache<br>
>>>> config.<br>
>>>><br>
>>>> I've used 3 methods.<br>
>>>><br>
>>>> 1) add them to the bottom of the httpd.conf file<br>
>>>> 2) add an include at the bottom of the httpd.conf file that<br>
>>>> includes a file containing all the vhosts<br>
>>>> 3) adding a vhost.conf file to /etc/httpd/config.d/ directory<br>
>>>><br>
>>>> In the last method, the vhosts are included in the middle of<br>
>>>> /etc/httpd/conf/httpd.conf file. Is this a problem?<br>
>>>><br>
>>>> Is there a better method?<br>
>>>><br>
>>>> Thanks!!<br>
>>>><br>
>>>> Keith<br>
>>>> ---------------------------------------------------<br>
>>>> PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
>>>> To subscribe, unsubscribe, or to change your mail settings:<br>
>>>> <a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a> [1]<br>
>>><br>
>>><br>
>>><br>
>>> Links:<br>
>>> ------<br>
>>> [1] <a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
>>><br>
>>> ---------------------------------------------------<br>
>>> PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
>>> To subscribe, unsubscribe, or to change your mail settings:<br>
>>> <a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
>><br>
>> ---------------------------------------------------<br>
>> PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
>> To subscribe, unsubscribe, or to change your mail settings:<br>
>> <a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
><br>
><br>
> ---------------------------------------------------<br>
> PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
> To subscribe, unsubscribe, or to change your mail settings:<br>
> <a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><font color="#0b5394">James</font><div><br><span style="color:rgb(255,255,255)"><span style="background-color:rgb(11,83,148)"><b><a href="http://www.linkedin.com/pub/james-h-dugger/15/64b/74a/" target="_blank"><span style="background-color:rgb(255,255,255)"><span></span><span style="color:rgb(11,83,148)">Linkedin<span></span></span></span></a></b></span></span><br>
</div></div>
</div>