• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Plesk 12.5.30 @debian_v8.3 - file sharing problem -> Forbidden - You do not have permission to acces

Stephan Palzer

New Pleskian
Hi,

I set up a new dedicated debian server with the newest plesk version. I want to use the filesharing-feature.
The only problem is, that I receive an error 403 "Forbidden" after accessing the link of a shared file. The link points to a subfolder (for example):
https://<domain>:443/files/unlisted/<some random letters>/<filename>.jpg

The link points not to a real file but to a symbolic link. I think there is a configuration problem in the default plesk-installation, that disables the apache-option FollowSymLinks

In the Plesk KB I found a solution to enable following of symbolic links: https://kb.plesk.com/en/127

But where do I have to put in the directive for the "file sharing"? For security reasons I don't want to enable this feature for the whole system... better only for the internal plesk file sharing feature.

Thank you for your advice
Best regards
Stephan
 
The manufacturer (odin) of plesk can't (don't want) help me.... my server hosting provider (hetzner) can't (don't want) help me too :(
This problem is a little bit confusing, because "file sharing" in plesk can not work at all with default configuration. I think the only way is to modify some config-files direct using ssh an vi

Do you have any other suggestions?

Greetings from germany
Stephan
 
I found the problem!!

The automatic generated symbolic links have the wrong owner.

To skip this apache security feature you have to add the "-SymLiksIfOwnerMatch" option in the file
/opt/psa/admin/conf/file_sharing.conf

Locate the correct directive for your file sharing folder and add the new option - for example on my system:

<Directory "/var/www/vhosts/fs/unlisted">
Options +FollowSymLinks -SymLinksIfOwnerMatch
AllowOverride None
</Directory>


But I have still a problem, because this file would be generated automatically... I think, my customizations will be overwritten in the future.
The first lines in the file are showing me:
#
# This is autogenerated file, do not edit.
#


Here is the link to the new thread: https://talk.plesk.com/threads/change-webserver-settings-for-file-sharing-but-where.337657/

Greetings from germany
Stephan
 
Back
Top