ok i need help making a rewrite rule to do this, but only if a virtualhost does not exist in the config file:
(www.)xxx.yyy.zzz/ to /home/apache2/domains/othr/zzz/yyy/x/xxx/htdocs
(www.)(aaa.)(bbb.)(...)xxx.yyy.zzz/cgi-bin to /home/apache2/domains/othr/zzz/yyy/x/xxx/sub/(bbb/)(aaa/)
and
(www.)xxx.yyy.zzz/cgi-bin to /home/apache2/domains/othr/zzz/yyy/x/xxx/cgi-bin
so...
http://test.winbots.org/index.html goes to /home/apache2/domains/othr/org/winbots/t/test/htdocs/index.html
and http://test.test.winbots.org/index.html goes to /home/apache2/domains/othr/org/winbots/t/test/sub/test/index.html
and http://test2.test1.test.winbots.org/index.html goes to /home/apache2/domains/othr/org/winbots/t/test/sub/test1/test2/index.html
and http://test.winbots.org/cgi-bin/index.cgi goes to /home/apache2/domains/othr/org/winbots/t/test/cgi-bin/index.cgi
and http://www.test.winbots.org/index.html goes to /home/apache2/domains/othr/org/winbots/t/test/htdocs/index.html
and... i think you get the picture
but only do this if there isnt an existing virtual host in the config