Shared directories

design

#1

I’m rethinking some aspects of my site, mainly how I share common files across several domains. I’ve been creating folders in a non-web-accessible directory, such as ~/share/css, and then linking them, where appropriate, into my web folders with “ln -s”… So if I go into ~/www.mydomain.com and get a file listing, I’ll see something like

lrwxrwxrwx 1 me 37 Aug 11 19:40 css -> /home/me/share/css/ lrwxrwxrwx 1 me 40 Aug 11 19:40 images -> /home/me/share/images/While this works exactly as intended, it can still get a little cumbersome, as I’ve got to do it for each directory I want to link to, in each domain or subdomain I want it. Is there a way to do this via .htaccess, for example? I’m thinking the Apache Alias directive would be perfect, but you can’t use it in the context of .htaccess …