Hello,
I'm using Plesk Obsidian on VPS, I created a Laravel project, I migrated the db, everything is fine until here.
When I try to access the images, I get an error like this: AH00037: Symbolic link not allowed or link target not accessible: /var/www/vhosts/tld/sub.tld/public/public
I add in Apache&Nginx Settings
Options +FollowSymlinks
Options -SymLinksIfOwnerMatch
But it didn't work.
Since the above lines didn't work, I added the above lines to the .htaccess file & I got internal server 500 error.
I rearranged the .htaccess file with the following codes, but still the same result. internal server 500 error.
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
</IfModule>
RewriteEngine On
# Handle Authorization Header
Options Indexes FollowSymLinks MultiViews
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Send Requests To Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
Can you help me about this issue?
Thank you!
I'm using Plesk Obsidian on VPS, I created a Laravel project, I migrated the db, everything is fine until here.
When I try to access the images, I get an error like this: AH00037: Symbolic link not allowed or link target not accessible: /var/www/vhosts/tld/sub.tld/public/public
I add in Apache&Nginx Settings
Options +FollowSymlinks
Options -SymLinksIfOwnerMatch
But it didn't work.
Since the above lines didn't work, I added the above lines to the .htaccess file & I got internal server 500 error.
I rearranged the .htaccess file with the following codes, but still the same result. internal server 500 error.
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
</IfModule>
RewriteEngine On
# Handle Authorization Header
Options Indexes FollowSymLinks MultiViews
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Send Requests To Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
Can you help me about this issue?
Thank you!