I've scoured the internet and safaribooks and can not seem to find if this is possible and I would appreciate any responses here. I have a valid wildcard SSL certificate *.mydomain.com For increased security I want to implement a proxy server which I have up and running beautifully using mod_proxy My distro is Ubuntu 9.10 running apache 2.2 What I need to know is, is it possible to write dynamic content in the VirtualHost directive. EG since SSL can only work on one IP address and the fact that I have a wildcard cert. I'm thinking I should be able to accept *.mydomain.com From one VirtualHost directive, but then change or switch which server is behind the reverse proxy based on the value of *. eg: https://a.mydomain.com points to 10.0.0.1 (proxy.mydomain.com) https://b.mydomain.com points to 10.0.0.1 (again proxy.mydomain.com) in the virtualHost configuration I need the following to happen: (.*?)\.mydomain\.com if($1 == 'a') ProxyPass / http://a-internal.mydomain.com (which is 192.168.1.1) if($1 == 'b') ProxyPass / http://b-internal.mydomain.com (which is 192.168.1.2) So what I need to know is if something like that is even possible in apache configurations If it is could you please give me a few ideas to start gathering information from.