Re: ln command (hard and symbolic links)

Startseite
Anhänge:
Nachricht
+ (text/plain)
Nachricht löschen
Nachricht beantworten
Autor: Darrin Chandler
Datum:  
To: Main PLUG discussion list
Betreff: Re: ln command (hard and symbolic links)
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
   |  http://phxbug.org/      |  http://metabug.org/
http://www.stilyagin.com/  |  Daemons in the Desert   |  Global BUG Federation
---------------------------------------------------
PLUG-discuss mailing list - 
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss