• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Change webserver settings for file sharing ... but where?

Stephan Palzer

New Pleskian
Hi Folks,

I would like to change a apache directive for the file sharing feature in plesk v12.5.30.
The responsible config file for the file sharing feature is:
/opt/psa/admin/conf/file_sharing.conf

I want to change it like following part:
<Directory "/var/www/vhosts/fs/unlisted">
Options +FollowSymLinks -SymLinksIfOwnerMatch
AllowOverride None
</Directory>

The first lines in the file are showing me:
#
# This is autogenerated file, do not edit.
#
Which points to a problem in the future!

This is the same problem as with any virtual host in plesk ... "put your customizations in the file vhost.conf"... But this doesn't work ... the file /opt/psa/admin/conf/vhost.conf would not be recognized. Where do I have to add the above apache directive, that it would be detected correctly?

Maybe a hack in the mysql database?

Best regards
Stephan
 
Hi Stephan,

Unfortunately, there is no way to do what you want because the source of file_sharing.conf content is hardcoded in crypted php system files.
You can describe your business case and submit feature request on plesk.uservoice.com
People will vote for this feature if it popular.
 
Hello,

put it in vhost,conf at the domain:

/var/www/vhosts/system/example.com/conf/vhost.conf

Then it works.

Ralph
 
Back
Top