我想在我的本地文件夹中有一部分 apache 配置。
有必要自动创建子域。
是否可以将本地文件夹中的所有文件投影到 Debian linux 下的 /etc/apche2/sites-available/
文件夹中?
我。 e.不要为每个新文件创建符号链接(symbolic link),而只是让事情变得简单 8-)
它必须看起来像这样:
LOCAL FOLDER SITES-AVAILABLE
f1.conf s-a1.conf
f2.conf s-a2.conf
f3.conf s-a3.conf
f1.conf
f2.conf
f3.conf
提前致谢!
最佳答案
来自 man mount
:
mount --bind olddir newdir
After this call the same contents are accessible in two places. One can also remount a single file (on a single file).
在您的情况下,它将是:
sudo mount --bind /etc/apche2/sites-available/ ~/my/local/folder/
确保 ~/my/local/folder/
在你执行 mount
之前是空的。
关于linux - 将文件从一个文件夹投影到另一个文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30017117/