It's not quite working, maybe what I want is a little more complicated. Here's what I have:<br>Listen 80<br>Listen 8080<br><VirtualHost <a href="http://127.0.0.1:80">127.0.0.1:80</a>><br> ServerName <a href="http://foo.domain1.com">
foo.domain1.com</a><br> DocumentRoot /var/www/html/foo<br></VirtualHost><br><VirtualHost <a href="http://127.0.0.1:80">127.0.0.1:80</a>><br>
ServerName <a href="http://foo.domain2.com">foo.domain2.com</a><br>
DocumentRoot /var/www/html/foo<br>
</VirtualHost><br>
<VirtualHost <a href="http://127.0.0.1:80">127.0.0.1:80</a>><br>
ServerName <a href="http://bar.domain1.com">bar.domain1.com</a><br>
DocumentRoot /var/www/html/bar<br>
</VirtualHost><br>
<VirtualHost <a href="http://127.0.0.1:80">127.0.0.1:80</a>><br>
ServerName <a href="http://bar.domain2.com">bar.domain2.com</a><br>
DocumentRoot /var/www/html/bar<br>
</VirtualHost><br>
<VirtualHost <a href="http://127.0.0.01:8080">127.0.0.01:8080</a>><br> ServerName <a href="http://foobar.domain1.com">foobar.domain1.com</a><br> ServerAlias <a href="http://isphostname.com">isphostname.com</a><br>
DocumentRoot /var/www/html<br></VirtualHost><br><br>Essentially, I'll be hosting both foo and bar on <a href="http://domain1.com">domain1.com</a> (at least for a while) and <a href="http://domain2.com">domain2.com
</a>, but foobar will only be on <a href="http://domain1.com">domain1.com</a>, and be on port 8080. Right now, I'm just testing <a href="http://domain1.com">domain1.com</a>. If I go to <a href="http://foo.domain1.com">
foo.domain1.com</a> (port 80), I get the correct page. If I go to <a href="http://foobar.domain1.com">foobar.domain1.com</a> (port 80), I get what I expected for <a href="http://foo.domain1.com">foo.domain1.com</a>. If I go to
<a href="http://foo.domain1.com:8080">foo.domain1.com:8080</a>, I get what I expected for <a href="http://foobar.domain1.com:8080">foobar.domain1.com:8080</a>. What do I need to do to display an error if <a href="http://foobar.domain1.com">
foobar.domain1.com</a> (port 80) is entered? How do I get <a href="http://foobar.domain1.com:8080">foobar.domain1.com:8080</a> to work, but not <a href="http://foo.domain1.com:8080">foo.domain1.com:8080</a>? And I did get rid of the Port directive.
<br>