[英]linux - create a folder shortcut
在html目录中,我有2个域,
example1.com
example2.com
他们两个都有一个名为files的文件夹
example1.com/files
example2.com/files
我在这些文件夹中添加了相同的视频文件,并且磁盘已满(因为我两次添加了相同的视频)
所以有没有办法创建一个简短的例子我将文件添加到
html / example1.com / files和html / example2.com / files将使用example1中的那些文件
我试过这个命令
ln -s /html/example1.com/files /html/example2.com/files
但是如果我访问example2.com/files/video.mp4,则会收到此错误
Forbidden
You don't have permission to access /services/tmp/1.html on this server.
Apache/2.2.15 (CentOS) Server at example2.com Port 80
有没有其他命令可以做到这一点
有一个简单的解决方案,只需运行此命令
mount --bind /html/example1.com/files /html/example2.com/files
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.