一个解决方案下多个网站的共享图像文件夹。 [英] shared images folder for multiple website under one solution.

查看:121
本文介绍了一个解决方案下多个网站的共享图像文件夹。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个解决方案中有九个网站。



1.内部系统(所有图像/文件将从此处上传(如CMS,用户DP等)。 。))



2.主网站

3.子网站1

4.子网站2 < br $>
5.子站点3

6.子站点4

7.子站点5

8.子站点6

9.子网站7



以上都可以更新图像/文件。



i想为内部系统中的图像和文件创建一个文件夹而所有其他人都有访问它的更新吗?

i have nine websites in one solution like.

1. Internal System (all images / files will uploaded from here(like CMS, User DP etc...))

2. Main Website
3. Sub Site 1
4. Sub Site 2
5. Sub Site 3
6. Sub Site 4
7. Sub Site 5
8. Sub Site 6
9. Sub Site 7

above all can update images/files from it too.

i want to make one folder for images and files in internal system and all other have access it update it?

推荐答案

请看我的评论这个问题。



最简单的解决方案是拥有一个网站。但也许你想让两个网站真正独立,首先是一个不同的领域。然后,它们可以由不同的服务器在不同的主机上提供。在这种情况下该怎么办?



另一个最简单的解决方案是在两个站点之一上放置所有这些图像。另一个站点将通过内联链接使用这些图像: http://en.wikipedia.org/wiki/ Inline_linking [ ^ ]。



这不是很简单吗?此外,您可以将另一面专用于这些共享图像。它可以在单独的主机上提供,也可以在与两个站点之一相同的主机上提供?



此外,您甚至可以阻止其他站点的内联链接。这可以通过一些服务器端技术来完成。图像将通过一些服务器端代码/脚本提供,该代码/脚本可以检查合法IO地址或 referrer 的HTTP请求,并仅将内容传递给合法请求。



-SA
Please see my comment to the question.

The simplest solution would be to have one single site. But perhaps you want to have two sites really independent, first of all, one different domains. Then they can be served on different hosts by different servers. What to do in this case?

Another simplest solution would be having all those images on one of the two sites. The other site would use those images via Inline Linking: http://en.wikipedia.org/wiki/Inline_linking[^].

Isn't it really simple? Also, you can dedicate another side to those shared images. It can be served on a separate host, or on the same host as one of your two sites?

Moreover, you can even prevent inline linking by other sites. This can be done by some server-side technology. The image will be served through some server-side code/script which can check up the HTTP request for legitimate IO address or referrer and deliver content only to the legitimate requests.

—SA


我在IIS上创建了所有9个网站,主内部系统名称中的文件夹用Images创建了我的地图作为其他8个网站的虚拟目录,所以所有网站都可以访问它并可以更新它。



全部感谢帮助..
I created all 9 websites on IIS and the folder in main Internal System name with "Images" i map it as virtual directory in others 8 web sites so all sites can access it and can update it.

Thanks All For the Help..


这篇关于一个解决方案下多个网站的共享图像文件夹。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆