Re: A question on links
- From: JohnK <johnk.dev.null@xxxxxxxxx>
- Date: Mon, 30 Jan 2006 20:04:46 +0000
scott wrote:
What I would like to do is create a link from one directory to another for the purposes of the apache web server. The apache directory looks like this:
/srv/www/vhosts/abc.com/srv/www/vhosts/abc.com
The above would also have a subdirectory of public_html.
For simplicity, I would like to have a directory of this: /home/abc.com
Now abc.com would have a link to the /srv/www/vhosts/abc.com directory. So is someone reads, modifies, creates files, etc in the /home/abc.com directory it will be done to the files in the /srv/www/vhosts/abc.com directory.
Would this be a hard link or a symbolic link to do this? Also, what about permissions, ownership of the directories?
I can't advise on the security of doing this for a webserver directory but you would do it thus
ln -s /home/abc.com /srv/www/vhosts/abc.com
This would be a symbolic link. You can't make hard links of directories. The link itself will have the default permissions and ownership of whoever created it but the *effective* permissions will be whatever is on the target directory.
JohnK .
- References:
- A question on links
- From: scott
- A question on links
- Prev by Date: Re: Search for Symbolic Links?
- Next by Date: Re: turing off eye candy on kde
- Previous by thread: Re: A question on links
- Next by thread: Howto force APT to ignore deps
- Index(es):
Relevant Pages
|