Try this:

&lt;VirtualHost *:80&gt;
  #VirtualDocumentRoot /var/www/hosts/%0
  VirtualDocumentRoot /home/%1/web
  ServerAlias *.test.galapagos.office
&lt;/VirtualHost&gt;


I believe that will sent requests to "jason.test.galapagos.office" to "/home/jason/web"

The full list of VirtualDocumentRoot directives can be found here:

http://httpd.apache.org/docs/2.2/mod/mod_vhost_alias.html

0     the whole name
1     the first part
2     the second part
-1    the last part
-2    the penultimate part
2+    the second and all subsequent parts
-2+   the penultimate and all preceding parts
1+ and -1+     the same as 0

Wildcard subdomain directory names
Has anyone had a problem with CE_Lossless where it reports that jpegtran and jpegoptim aren't installed even though they are?

The template debugger reports:


  (0.344540 / 6.28MB)   *  CE Lossless debug: It doesn't look like the jpegtran is available.
  
  (0.344585 / 6.28MB)   *  CE Lossless debug: It doesn't look like the jpegoptim is available.


But if I check the server I see they are both present:


  $ which jpegtran jpegoptim 
  /usr/bin/jpegtran /usr/bin/jpegoptim

