symbolic linking

Soldato
Joined
30 Jun 2003
Posts
2,807
Location
Berkshire
ok what i want to do is be able to view a folder located at /gameserver to be able to view from /var/www/vhosts/domain/httpdocs/gameserver

i've tried ln -s /gameserver /var/www/vhosts/domain/httpdocs/gameserver

it works under shell however when i try to view in ftp theres no luck, view in http i get permission denied,

any ideas?

OS is CentOS 3.6 with Plesk
 
You might need to change things in Apache to get it to properly follow symbolic links.

This is just a guess though.

Oh, the permission denied thing might be affected by Apache not having the rights to read the /gameserver directory. Who owns gameserver, and what are the perms on it?
 
To follow symlinks you want the following in either httpd.conf (in the appropriate section) or a .htaccess file.

Code:
Options FollowSymLinks
 
tried creating the htaccess file using nano, then made the link as shown in start of thread but still no magic, all i get is a folder with a mark that looks like its meant to be linking folders, then inside that an 11k file which leads nowhere, if i go through ssh i can walk through no problem, but i need it to be ftp viewable
 
Try adding this to httpd.conf

Code:
<Directory /var/www>
    Order Allow,Deny
    Allow from all
    Options -FollowSymLinks +SymLinksIfOwnerMatch
</Directory>

"+SymLinksIfOwnerMatch" is to ensure Apache won't follow symlinks where the owner doesn't mtach.

The FTP issue will need to be addressed in that particular FTP software. Not all FTP servers let you follow symlinks and most that do equire it to be configured.
 
Back
Top Bottom