<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div><br></div><div>Thanks for the comebacks. Here is the deal, apparently: </div><div><br></div><div>You will recall that I had successfully made up a virtual host and my fundamental complaint was that while the virtual was working fine, the default server/page did not serve up content that I thought it should. I did discover today that the situation was not simply that the default server didn't serve as I thought; I discovered additionally that *all* traffic was being routed to the virtual server.<br></div><div><br></div><div>From the Apache 2.2 documentation, virtual hosts section (ouch, I shoulda RTFM):<br></div><div style="padding-left: 30px;"><i><br></i></div><div style="padding-left: 30px;" class="note"><h3><i>Main host goes away</i></h3>
<div><i>If you are adding virtual hosts to an existing web server,
you
must also create a <code class="directive"><a href="http://httpd.apache.org/docs/2.2/mod/core.html#virtualhost" mce_href="http://httpd.apache.org/docs/2.2/mod/core.html#virtualhost"><VirtualHost></a></code>
block for the existing host. The <code class="directive"><a href="http://httpd.apache.org/docs/2.2/mod/core.html#servername" mce_href="http://httpd.apache.org/docs/2.2/mod/core.html#servername">ServerName</a></code>
and <code class="directive"><a href="http://httpd.apache.org/docs/2.2/mod/core.html#documentroot" mce_href="http://httpd.apache.org/docs/2.2/mod/core.html#documentroot">DocumentRoot</a></code>
included in this virtual host should be the
same as the global <code class="directive"><a href="http://httpd.apache.org/docs/2.2/mod/core.html#servername" mce_href="http://httpd.apache.org/docs/2.2/mod/core.html#servername">ServerName</a></code>
and
<code class="directive"><a href="http://httpd.apache.org/docs/2.2/mod/core.html#documentroot" mce_href="http://httpd.apache.org/docs/2.2/mod/core.html#documentroot">DocumentRoot</a></code>.
List this virtual
host first in the configuration file so that it will act as the
default
host.</i></div>
</div>
<div style="padding-left: 30px;"><i>For example, suppose that you are serving the domain
<code>www.domain.tld</code> and you wish to add the virtual host
<code>www.otherdomain.tld</code>, which points at the same IP
address.
Then you simply add the following to <code>httpd.conf</code>:</i></div>
<div style="padding-left: 30px;" class="example"><div><i><code>
NameVirtualHost *:80<br>
<br>
<VirtualHost *:80><br>
<span class="indent">
ServerName www.domain.tld<br>
ServerAlias domain.tld *.domain.tld<br>
DocumentRoot /www/domain<br>
</span>
</VirtualHost><br>
<br>
<VirtualHost *:80><br>
<span class="indent">ServerName www.otherdomain.tld<br>
DocumentRoot /www/otherdomain<br>
</span>
</VirtualHost></code></i></div><div><i><br></i></div></div>
<div style="">A confounding issue was that the things I was trying to achieve via webmin, including adding such a default virtual server, were not being completed quite the same way as the manual suggested, so I hand-coded them, and all is well. webmin still seems to work for maintenance-- I suppose it's best not to push those tools too far.</div><div style=""><br></div><div style="">Thanks again.</div><div style=""><br></div><div style="">DH<br></div></span></body></html>