• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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