[英]Access a website folder from another website in the same IIS
I have 4 independent ASP websites deployed in IIS server. 我在IIS服务器中部署了4个独立的ASP网站。
I access my website images using relativePath so i have root/path_to_files (something like that). 我使用relativePath访问我的网站图像,所以我有root / path_to_files(类似这样)。
My problem is i want to access website1 images folder from website2 and so on, web3 access web4 (you get the picture). 我的问题是我要从website2访问website1图像文件夹,依此类推,web3访问web4(您得到图片)。
I tried absolutePAth but security reasons (not safe) blocked me. 我尝试了absolutePAth,但是出于安全原因(不安全)阻止了我。
I`m reading the name and path of the repositories from a file. 我正在从文件中读取存储库的名称和路径。
What can I do, without remaking all or create a central repository(and upload all files there). 我该怎么办,而无需重新制作所有文件或创建一个中央存储库(然后将所有文件上传到那里)。
EDIT 1: using url is locked but i can unlock. 编辑1:使用网址已锁定,但我可以解锁。 I can use url to get/list folders and images and use them ? 我可以使用url获取/列出文件夹和图像并使用它们吗? Like resolve a url in a relativePATH to other website?! 喜欢解析相对网站中其他网站的网址吗?
Central repository the site is allready in production it will have big impact time/benfit to do that. 该站点已准备就绪,可以在中央存储库中进行生产,这将对时间/收益产生重大影响。
Have you considered symbolic links? 您是否考虑过符号链接? You can make a shared image folder. 您可以创建一个共享图像文件夹。 Then each folder can see that "image" folder as its own. 然后,每个文件夹都可以看到该“图像”文件夹。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.