<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I _did_ forget to include http-vhosts.conf. Thanks for reminding me of that.  (Not sure I need host_alias.) <div class=""><br class=""></div><div class="">Plus I changed permissions in the vhosts to... </div><div class=""><div class=""><br class=""></div><div class="">   Require all granted</div><div class=""><br class=""></div><div class="">…from the apache 2.2 settings:</div><div class=""><br class=""></div><div class="">    Order allow, deny<br class="">    Allow from all</div><div class=""><br class=""></div><div class="">Almost everything is working as expected. (There’s a remaining issue with phpmyadmin that I’ll address in a separate thread.)</div><div class=""><br class=""></div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On 24 Oct2017, at 4:33 PM, Alejandro Imass <<a href="mailto:aimass@yabarana.com" class="">aimass@yabarana.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class=""><div class="gmail_quote"><div dir="auto" class="">On Tue, Oct 24, 2017 at 4:09 PM Murray Eisenberg <<a href="mailto:murrayeisenberg@gmail.com" target="_blank" class="">murrayeisenberg@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;">Just a couple of typos in my original message fixed below.<br class=""><br class="">> On 24 Oct2017, at 4:07 PM, Murray Eisenberg <<a href="mailto:murrayeisenberg@gmail.com" target="_blank" class="">murrayeisenberg@gmail.com</a>> wrote:<br class="">><br class="">> In apache 2.4 I have several virtual hosts configured  — properly, I believe — in /opt/local/etc/apache2/extra/httpd-vhosts.conf.<br class="">><br class="">> One of the virtual hosts works just fine, but others do not.<br class="">><br class="">> ** This one works **<br class="">><br class="">> For example, once apache is running, in the browser I CAN load “myhomepage.local” thanks to this part of httpd-vhosts.conf:<br class="">><br class="">>   <VirtualHost *:80><br class="">>       ServerAdmin<span class="Apple-converted-space"> </span><a href="mailto:somebody@somewhere.com" target="_blank" class="">somebody@somewhere.com</a><br class="">>       DocumentRoot "/Users/me/Sites/MyHomePage"</blockquote><div dir="auto" class=""><br class=""></div></div></div></div><div style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class="gmail_quote"><div dir="auto" class="">The docs on the apache virtual hosts are pretty clear and FreeBSD’s file layout is very standard. So some of your questions may be answered just by RTFM, but here are some pointers that may help:</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">1) make sure httpd-vhosts.conf is actually being included. They are usually commented in httpd.conf so search that file for the commented Include directive (search file for “vhost”)</div><div dir="auto" class="">2) If using aliases I think you need to also uncomment vhost_alias module in that same file.</div><div dir="auto" class="">3) When Apache cannot make a match it will default to the first vhost defined (this is explicit in the apache docs). So a good practice is to reserve the first defined vhost precisely for non-matching sites. AFAICR once you use vhost you cannot mix-match conf with global settings.</div><div dir="auto" class="">4) If this server is sitting behind a reverse proxy make sure you are passing all the appropriate headers so the inner server can determine the original request’s domain. Look at ProxyPreserveHost and/or rewrite your headers manually YMMV.</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">Hope some of it helps.</div><div dir="auto" class="">— </div><div dir="auto" class="">Alex</div></div></div></div></blockquote></div><br class=""><div class="">
---<br class="">Murray Eisenberg<span class="Apple-tab-span" style="white-space: pre;">                       </span><a href="mailto:murrayeisenberg@gmail.com" class="">murrayeisenberg@gmail.com</a><br class="">503 King Farm Blvd #101<span class="Apple-tab-span" style="white-space: pre;">     </span>Home (240)-246-7240<br class="">Rockville, MD 20850-6667<span class="Apple-tab-span" style="white-space: pre;">  </span>Mobile (413)-427-5334<br class=""><br class="">

</div>
<br class=""></div></body></html>