简体   繁体   English

从同一IIS中的另一个网站访问网站文件夹

[英]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.

相关问题 无法从同一服务器访问网站 - Cannot access website from the same server 来自IIS中托管的网站的SOAP API访问错误 - SOAP API access error from a website hosted in IIS 通过IIS的QueryString可以访问同一网站的多个页面 - Multiple Pages of same Website through QueryString from IIS 无法从Azure网站访问SQL Azure数据库,但相同的连接字符串可从本地网站运行 - Cannot access SQL Azure DB from Azure website but same connection string works from local website ASP.Net Core - 从“调试”文件夹创建本地 IIS 网站 - ASP.Net Core - Create Local IIS Website From 'Debug' Folder 网站从另一个网站提取数据并返回 - website to pull data from another website and return it 如何从当前网站登录另一个网站 - How to login to another website from current website 使用同一服务器上另一个网站的c#类文件 - using c# class files from another website on the same server 其他选项卡正在下载文件时(从同一网站)无法访问网站 - Cannot access website while other tab is downloading a file (from same website) 从另一个网站在一个网站上调用网络服务; 两者都托管在同一台服务器上 - Calling a webservice on one website from another website; both hosted on the same server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM