Update Thanks to Bill and crb's answers, I believe I have it working.
xxx@host:/etc/apache2/sites-available$ apache2ctl -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 is a NameVirtualHost
default server default (/etc/apache2/sites-enabled/000-default:4)
port 80 namevhost default (/etc/apache2/sites-enabled/000-default:4)
port 80 namevhost www.123acme.com (/etc/apache2/sites-enabled/www.123acme.com:4)
Syntax OK
Now www.123acme.com will resolve to the proper VirtualHost served by Apache from /var/www, while everything else if proxied to Jetty.
I have an Apache2 instance on port 80 and a Jetty app server running on 8080. I would like the Apache instance to server up a VirtualHost, let's say www.acme.com, and to send all other traffic to the Jetty instance.
So far I have sites-available/jetty which contains
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://localhost:8080/
ProxyPreserveHost On
ProxyStatus On
with the goal of first getting everything to proxy to Jetty. This seems to be working okay so far.
So from this point, how would I got about configuring the various VirtualHosts which don't get proxied?
Just to reiterate:
-Typing www.acme.com should resolve to a traditional VirtualHost sitting in /var/www and served by Apache2 from the config in sites-enabled/acme.com
-Typing anything else should get forwarded to the Jetty instance running on 8080