There is a site in /var/www/vhosts/domain.com/subdomain/system/httpdocs/site
. He is a copy of what lies in /opt/site
. In order not to synchronize them manually, I want to redirect the system.domain / site to /opt/site
. Made symlink:
ln -s /opt/site site2
But when I access system.domain.com/site2 in the browser, I see a clean white sheet. If I do symlink on a folder,
ln -s /var/www/vhosts/domain.com/subdomain/system/httpdocs/site_copy symlink
then when accessing the system.domain.com/symlink page is loaded, which makes it clear that symlink'i work. And the case is most likely in the rights.
I tried to add in /var/www/vhosts/domain.com/subdomain/system/httpdocs/site/.htaccess
<Directory /opt/site> Order allow,deny Allow from all </Directory>
Also - a white sheet.
/var/www/vhosts/domain.com/subdomain/system/httpdocs/site/.htaccess:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /site/ Options +FollowSymLinks RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php [L] #RewriteRule . index.php </IfModule> Options FollowSymLinks -- я добавил