Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 5.x > Installation and deployment > Static content served by cookieless domains View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
emanuele.firmani-aduno-gruppe - 11/10/2010 4:13:46 AM
   
Static content served by cookieless domains
I have a website, let's say
http://www.mydomain.com

I'd like to provide static content (ie images, csses, scripts) from a different domain:
http://mydomain.mymediadomain.com

Do you have any best practice to achieve this goal in Kentico?

Thanks
Regards
Emanuele Firmani

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 11/25/2010 2:05:55 AM
   
RE:Static content served by cookieless domains
Hello,

The easiest way for sharing content would be, if your sites are in the same instance of Kentico CMS. Then you'll have available content from both sites e.g. in WYSIWYG dialogs, you'll be able to choose (optionally common) CSS stylesheets in Site Manager.

You can find more info on how to setup multiple sites within one instance here: http://devnet.kentico.com/docs/devguide/configuring_multiple_web_sites.htm

Best regards
Ondrej Vasil

User avatar
Certified Developer v7
Certified  Developer v7
emanuele.firmani-aduno-gruppe - 11/25/2010 4:56:08 AM
   
RE:Static content served by cookieless domains
This is not a valid solution because I need a new IIS web site: this requirements is due to the fact that I want to create a cookieless sessionless domain. So, I need also a different web.config.

Thanks
Regards
Emanuele Firmani

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 11/25/2010 7:50:32 AM
   
RE:Static content served by cookieless domains
Hello,

You can try to setup your sites the way that they use separate projects folders (and are also configured in IIS as independent applications) and share one database via same connection string (this can be modified in your cookieless and sessionless site). This way you'll have common base of global objects as you want to.

On the other hand, you can of course manually create links to your say subdomain site when referring to any external scripts, CSS stylesheets, images.

Hope this meet your needs. If not, please provide us with detailed description of your scenario.

Best regards
Ondrej Vasil