• 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!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.

Symlinks resulting in 403 Error

Q

qxxx

Guest
Hello!

i would like to acces files from subdomains also on the main domain,
example:

http://download.example.com/file.zip
want to acces from here:
http://www.example.com/download/file.zip

i created a symlink like that:
ln -s /home/httpd/vhosts/example.com/subdomains/download/httpdocs download
(in folder: /home/httpd/vhosts/example.com/httpdocs)

the symlink is created.
now if i acces a file like that:
http://www.example.com/download/file.zip
apache shows: a 403 error (forbidden)
The Apache Logs showing "Symlinks are not allowed here"

i chmoded all 777, chown wwwrun.www, restarted the apache,
what can i do more?

Thanks in Advance, Q
 
You need to edit plesk's virtual host overrides file in that domain's /conf/ directory, the file is called: vhost.conf.

In this file you need to put:

Code:
<Directory <full/path/to/the/domains/httpdocs>
    Options FollowSymLinks
</Directory>

Then you need to restart the apache server:

(If its a redhat box): # service httpd restart

This should solve the problem, as the default plesk apache installation does not tend to allow you to follow symlinks automatically.

I just recently had todo this my self actually.

Hope this helps!

If you need further assistance, feel free to contact me on here, or direclty, thanks.
 
sorry, doesnt work, still 403.
i have everywhere a vhost.conf file:

in domain.com\subdomains\blabla\conf
and
domain.com\conf

all something like this inside:
PHP:
<Directory "/home/httpd/vhosts/domain.com">
Options -Indexes +FollowSymLinks +Includes
DirectoryIndex index.php
php_admin_value open_basedir /home/httpd/vhosts/domain.com/httpdocs/
php_admin_flag safe_mode Off
php_admin_value memory_limit 60M
</Directory>

:(
 
He's apparently right, I don't see this working either... time to keep digging for an answer.
 
Sorry, spoke too soon, didn't check my permissions of the symlink. After chown'ing them it is working dandily. Thanks!
 
Back
Top