<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt">That hits the spot!!  Thank you James!!<br><div> </div><div>------------------------<br>Keith Smith</div><div style="display: block;" class="yahoo_quoted"> <br> <br> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> On Sunday, March 16, 2014 12:05 AM, James Dugger <james.dugger@gmail.com> wrote:<br> </font> </div>  <div class="y_msg_container"><div id="yiv8254385399"><div><div dir="ltr"><div class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:#0b5394;">Keith,</div><div
 class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:#0b5394;">

<br clear="none"></div><div class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:#0b5394;">Depends on the Distro.  If you are using CentOS or any RHEL alternative, then typically you place the site conf files in:</div>

<div class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:#0b5394;"><br clear="none"></div><div class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:#0b5394;">    /etc/httpd/conf.d/</div>

<div class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:#0b5394;"> </div><div class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:#0b5394;">The following line should already be in the httpd.conf file provided by Apache it may just need to be un-commented:</div>

<div class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:#0b5394;"><br clear="none"></div><div class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:#0b5394;">    Include conf.d/*.conf </div>

<div class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:#0b5394;"><br clear="none"></div><div class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:#0b5394;">FYI site configuration files placed in the conf.d directory are given run priority by lower numbered files first. For example 10-example.site2.conf would be run before 20-example.site1.conf.</div>

<div class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:#0b5394;"><br clear="none"></div><div class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:#0b5394;">If you don't want to use the conf.d/ directory then you could create a directory like /etc/httpd/conf/vhost/ and place your .conf files in there.  You would then simply add an includes file like so in httpd.conf:</div>

<div class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:#0b5394;"><br clear="none"></div><div class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:#0b5394;">    Include conf/vhost/*.conf</div>

<div class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:#0b5394;"><br clear="none"></div><div class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:#0b5394;">If you are running Apache in a Debian or Ubuntu based distro than all site conf files go in /etc/apache2/sites-available/. Apache2 in Debian and Ubuntu require that new sites are enabled.  to do this after creating your site's .conf file run:</div>

<div class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:#0b5394;"><br clear="none"></div><div class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:#0b5394;">   sudo a2ensite your-site-name.conf (this is the same name you gave the conf file in /etc/apache2/sites-available)</div>

<div class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:#0b5394;"><br clear="none"></div><div class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:#0b5394;">Also in Debian/Ubuntu you need to ensure that the mod_rewrite module is enabled.  To do this you type just once.</div>

<div class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:#0b5394;"><br clear="none"></div><div class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:#0b5394;">    sudo a2enmod rewrite</div>

<div class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:#0b5394;"><br clear="none"></div><div class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:#0b5394;">Hope that helps.</div>

<div class="yiv8254385399gmail_extra"><br clear="none"></div><div class="yiv8254385399gmail_extra"><div class="yiv8254385399gmail_default" style="font-family:arial, helvetica, sans-serif;font-size:small;color:rgb(11,83,148);">​James​</div><br clear="none"><br clear="none"><div class="yiv8254385399gmail_quote">On Sat, Mar 15, 2014 at 9:24 PM, keith smith <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:klsmith2020@yahoo.com" target="_blank" href="mailto:klsmith2020@yahoo.com">klsmith2020@yahoo.com</a>></span> wrote:<br clear="none">

<blockquote class="yiv8254385399gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv8254385399yqt2525745219" id="yiv8254385399yqt75159"><div><div style="font-size:12pt;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;">Cool, thanks!!<br clear="none">

<div><span></span></div><div> </div><div>------------------------<br clear="none">Keith Smith</div><div><div class="yiv8254385399h5"><div style="display:block;"> <br clear="none"> <br clear="none"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;">

 <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;"> <div dir="ltr"> <font face="Arial"> On Saturday, March 15, 2014 8:40 PM, Eric Cope <<a rel="nofollow" shape="rect" ymailto="mailto:eric.cope@gmail.com" target="_blank" href="mailto:eric.cope@gmail.com">eric.cope@gmail.com</a>> wrote:<br clear="none">

 </font> </div>  <div><div><div><div dir="ltr"><div>Cpanel does it that way too. I couldn't find a quick reference, but here is one:<br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://stackoverflow.com/questions/6526498/import-include-external-virtualhost-file-to-be-used-inside-apaches-httpd-conf">http://stackoverflow.com/questions/6526498/import-include-external-virtualhost-file-to-be-used-inside-apaches-httpd-conf</a><br clear="none">



<br clear="none"></div>Eric<br clear="none"></div><div><br clear="none"><br clear="none"><div>On Sat, Mar 15, 2014 at 5:04 PM, keith smith <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:klsmith2020@yahoo.com" target="_blank" href="mailto:klsmith2020@yahoo.com">klsmith2020@yahoo.com</a>></span> wrote:<br clear="none">



<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div><div style="font-size:12pt;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;"><div>

<span><br clear="none"></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;"><br clear="none"><span></span></div>

<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;">

<span>I Hope I do not drive everyone crazy over the next couple days or weeks as it might be.  So let me thank you in advance for your patience and help!!<br clear="none"></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;">



<br clear="none"><span></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;"><span>A little background... A year ago one of the members of this list helped me configure a webserver that is in my home office.  It has run well for a year.  It is on an old desktop so I bought a new box and it is time to configure it.  This time I hope to go it alone with my safety net of course.<br clear="none">



</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;"><br clear="none"><span></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;">



<span>My first of
 probably many questions has to do with Apache - I was told a while ago that the way to add vhosts is by putting them into a seperate file so they will not get overwritten during an update.</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;">



<span><br clear="none"></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;"><span>I've been looking for a standard way to do this, however I am not finding any standard.  Is there a standard or do I just add an include at the end of the httpd.config.  If so should I just add the SSL vhosts in the same way?</span></div>



<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;"><span><br clear="none"></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;">



<span>Thank you so much for your help!!</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;"><span><br clear="none">

</span></div>

<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;"><span>Keith  </span></div><div> </div><div>------------------------<br clear="none">



Keith Smith</div></div></div></div><br clear="none">---------------------------------------------------<br clear="none">
PLUG-discuss mailing list - <a rel="nofollow" shape="rect" ymailto="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank" href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br clear="none">
To subscribe, unsubscribe, or to change your mail settings:<br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br clear="none"></blockquote></div><br clear="none">

</div></div></div><br clear="none"><div>---------------------------------------------------<br clear="none">PLUG-discuss mailing list - <a rel="nofollow" shape="rect" ymailto="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank" href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br clear="none">

To subscribe, unsubscribe, or to change your mail settings:<br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></div>

<br clear="none"><br clear="none"></div>  </div> </div>  </div> </div></div></div></div></div><br clear="none">---------------------------------------------------<br clear="none">
PLUG-discuss mailing list - <a rel="nofollow" shape="rect" ymailto="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank" href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br clear="none">
To subscribe, unsubscribe, or to change your mail settings:<br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br clear="none"></blockquote></div><br clear="none"><br clear="all"><div><br clear="none"></div>-- <br clear="none"><div dir="ltr">

<font color="#0b5394">James</font><div><br clear="none"><span style="color:rgb(255,255,255);"><span style="background-color:rgb(11,83,148);"><b><a rel="nofollow" shape="rect" target="_blank" href="http://www.linkedin.com/pub/james-h-dugger/15/64b/74a/"><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 clear="none">

</div></div>
</div></div></div></div><br><div class="yqt2525745219" id="yqt00300">---------------------------------------------------<br clear="none">PLUG-discuss mailing list - <a shape="rect" ymailto="mailto:PLUG-discuss@lists.phxlinux.org" href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br clear="none">To subscribe, unsubscribe, or to change your mail settings:<br clear="none"><a shape="rect" href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></div><br><br></div>  </div> </div>  </div> </div></body></html>