我有一个关于产品的项目。我已经运行“ php artisan storage:link”,并且创建了symlink。我可以将文件上传到存储设备,但不能下载。该项目在本地正常运行。当我在公用文件夹上运行“ ls -l”时,得到此输出
drwxr-xr-x 2 root root 4096 Jul 3 19:05 css
-rw-r--r-- 1 root root 0 Jul 3 19:05 favicon.ico
drwxr-xr-x 4 root root 4096 Jul 3 19:05 images
-rw-r--r-- 1 root root 1823 Jul 3 19:05 index.php
drwxr-xr-x 2 root root 4096 Jul 3 19:05 js
-rw-r--r-- 1 root root 133 Jul 6 14:49 mix-manifest.json
-rw-r--r-- 1 root root 24 Jul 3 19:05 robots.txt
drwxr-xr-x 3 root root 4096 Jul 3 19:05 scripts
lrwxrwxrwx 1 root root 60 Jul 7 16:25 storage -> /var/www/vhosts/example.com/httpdocs/storage/app/public
-rw-r--r-- 1 root root 7482034 Jul 3 19:05 storage.zip
drwxr-xr-x 4 root root 4096 Jul 3 19:05 styles
drwxr-xr-x 2 root root 4096 Jul 3 19:05 svg
我在根目录上的.htaccess是;
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
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]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
我正在使用的Centos 7 OS和plesk面板。有人可以帮我吗?