Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Friendly url's for media library files and UNC Path View modes: 
User avatar
Member
Member
mmacarie-kepler-rominfo - 6/4/2013 5:29:18 AM
   
Friendly url's for media library files and UNC Path
I am working on a new site and having some problems relating media library files.

The site is deployed on a webfarm and the media library folder is specified using a UNC path in a common location for all web servers.

In the website there is a transformation that build the path to the media library images using a predefined path /<site_name>/media/Images/affiliates-logos/ concatenated with the file name.

Can this path be accessible even if the the media library folder is on another server.

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 6/4/2013 10:46:13 PM
   
RE:Friendly url's for media library files and UNC Path
Hi,

From our documentation it seems that when you are running on webfarm and have the same UNC root defined on all servers, it is necessary to add the following key into your web.config in order for the files stored in the libraries not to be transferred when synchronizing the web farm content:
<add key="CMSWebFarmSynchronizeMediaFiles" value="false"/>

Also Im not familiar with cases it wouldnt be working.

If you however encounter any issues - why not use virtual path instead?

Kind regards,
Richard Sustek

User avatar
Member
Member
mmacarie - 6/5/2013 12:45:50 AM
   
RE:Friendly url's for media library files and UNC Path
If we use a virtual path then the files would be stored on each server, right?

We don't want that, we want them to be stored on a shared folder on another server.

It seems that when accessing the files with the previous stated path Kentico tries to serve it from the local deployment folder of each server instead of the UNC Path folder.

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 6/5/2013 2:07:49 AM
   
RE:Friendly url's for media library files and UNC Path
Hi,

yea, it that case try using the web config I sent in the previous e-mail. This way it should prevent the ML files to be copied so they are onnly stored in the shared folder location.

Let us know if you have some issues with this setup.

Kind regards,
Richard Sustek