ln command (hard and symbolic links)

Darrin Chandler dwchandler at stilyagin.com
Fri Nov 9 14:13:36 MST 2007


On Fri, Nov 09, 2007 at 01:04:01PM -0800, keith smith wrote:
> 
> You say "If this is a common situation, perhaps you can just share a
> directory between vhosts instead, and put all the common files in
> there."
> 
> Sharing a directory between hosts would be great.  Now all I have to
> do is find out how.  As you can see being a Linux admin is not my
> primary skill.  I'm a programmer .....

Me, too ;-)

A "serverwide" example is in the stock apache httpd.conf for the icons
directory, which is shared and used for automatic directory indexing, if
you have that enabled. Anyway, in my configs it looks like this:

Alias /icons/ "/var/www/icons/"

<Directory "/var/www/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

So, for any and every virtual host I have I can pull up
http://www.mydomain.com/icons/pie2.png and it works.

-- 
Darrin Chandler            |  Phoenix BSD User Group  |  MetaBUG
dwchandler at stilyagin.com   |  http://phxbug.org/      |  http://metabug.org/
http://www.stilyagin.com/  |  Daemons in the Desert   |  Global BUG Federation


More information about the PLUG-discuss mailing list