On Wed, 11 Jul 2001 19:39, Haim Dimermanas wrote: > > Why not use vhost_alias_module in Apache and something like the > > following: VirtualDocumentRoot /home/www/%-1/%-2/%-3/%-4+ > > I have one large problem with this solution and I have been working on it > for days without being able to solve it. > > What do you do if your customer have a URL that has less than 4 parts? > > Example: My domain name is example.com. If I have a www A record set in the > DNS, it will look for the files in /home/www/com/example/www/_/ (notice the > "_" at the end) when www.example.com is requested. > > Now imagine that the guy wants his website accessible via > http://example.com as well. The URL only has 2 parts. Apache will look for > the files in /home/www/com/example/_/_/(notice the 2 "_" this time) when > example.com is requested. > > Any solution?
Enable sym-links in Apache (I know some people recomment against it, but when apache has no special privs it's no real risk). Then create a sym-link between them. If you don't want sym-links then use the --bind option to mount with kernel 2.4.x and create hard-links in the kernel. -- http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/projects.html Projects I am working on http://www.coker.com.au/~russell/ My home page