<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Virtualization URLs / hostnames? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/virtualization-urls-hostnames/m-p/72453#M47093</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a critical problem with the way that virtualization is handled by massaging the hostname.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Frankly, for several of my clients' situations this method is so far from being remotely acceptable or feasible that it's not even worth thinking about.&amp;nbsp; It strikes me that this will surely become a problem also for Alfresco, as the difficulty is greatest in some environments which are exactly the kind of organisation I would expect Alfresco to be targetting as potentially lucrative clients.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is sufficiently severe that I'm being forced to reconsider whether I can use Alfresco at all.&amp;nbsp; I'm particularly surprised that this is used even for sandbox preview.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it really not possible to do this by manipulating the path prefix of the URL?&amp;nbsp; I've tried to follow the explanations suggested on the Wiki but I really can't see what is the insurmountable problem here.&amp;nbsp; All we're doing here, after all, is encoding an extra piece of information in the URL: the hostname seems the the least suitable place to put this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Mar 2007 11:45:07 GMT</pubDate>
    <dc:creator>sacco</dc:creator>
    <dc:date>2007-03-06T11:45:07Z</dc:date>
    <item>
      <title>Virtualization URLs / hostnames?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/virtualization-urls-hostnames/m-p/72453#M47093</link>
      <description>HiI have a critical problem with the way that virtualization is handled by massaging the hostname.&amp;nbsp; Frankly, for several of my clients' situations this method is so far from being remotely acceptable or feasible that it's not even worth thinking about.&amp;nbsp; It strikes me that this will surely become a p</description>
      <pubDate>Tue, 06 Mar 2007 11:45:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/virtualization-urls-hostnames/m-p/72453#M47093</guid>
      <dc:creator>sacco</dc:creator>
      <dc:date>2007-03-06T11:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Virtualization URLs / hostnames?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/virtualization-urls-hostnames/m-p/72454#M47094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's also worth pointing out that this approach plays exceedingly badly with secure communication using SSL.&amp;nbsp; Even assuming that the server config has been fudged to respond to everything on a given IP and still pass the correct hostname to Alfresco, most browsers are going to pop up an endless stream of warnings about mis-matched certificates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The typical approach of offloading the encryption by putting the app server behind a secure web-server will be more difficult and complicted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not really suggesting that you should use cookies, but in the Wiki it is suggested that cookies are not a suitable mechanism because:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;All windows share the same set of cookies, so you can't have mulitiple views active at the same time.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;However, this bug:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://issues.alfresco.com/browse/AWC-1140" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/browse/AWC-1140&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;which has been resolved as "Won't fix", means that you can't have multiple multiple active views anyway:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;"you cannot have more than one browser window/tab sharing the same user session."&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2007 14:05:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/virtualization-urls-hostnames/m-p/72454#M47094</guid>
      <dc:creator>sacco</dc:creator>
      <dc:date>2007-03-06T14:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Virtualization URLs / hostnames?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/virtualization-urls-hostnames/m-p/72455#M47095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sacco,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to use an X.509 wildcard cert for authenticated SSL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;They are easy to create/buy, and browsers work with them nicely.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to experiment with this yourself, just install openssl;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when you get to the step of creating the actual certificate request,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you'll do something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;openssl req -new -x509 -keyout demoCA/private/cakey.pem -out demoCA/cacert.pem -days 3652&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;You'll be asked to specify the "Common Name"&amp;nbsp; (or "CN") in the key&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;signing request; just use a wildcard at the appropriate subdomain&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;level&amp;nbsp; (e.g.:&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt; *.&lt;/STRONG&gt;&lt;EM&gt;your-virtualization-domain&lt;/EM&gt;&lt;SPAN&gt; ).&amp;nbsp;&amp;nbsp; It's that simple.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It works like any other cert.&amp;nbsp;&amp;nbsp; If you want more info on creating&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;certs, SSL, or anything else, let me know.&amp;nbsp;&amp;nbsp; Would a wiki page on&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this topic be helpful to you?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you have any other specific concerns, or was that it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for your questions regarding hostname vs request path&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;virtualization,&amp;nbsp; there are many reasons why using request paths &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is the "greater evil".&amp;nbsp;&amp;nbsp; For starters,&amp;nbsp; it means that every single&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;integration for which you forward-proxy must embed a custom&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;plugin that duplicates the same logic for internal subrequests&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(e.g.: SSIs).&amp;nbsp;&amp;nbsp; You also lose the contents of POSTS across&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;redirects,&amp;nbsp; unless you cache these arbitrarily long POST bodies&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;across redirects for N clients in parallel, thereby exposing you&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to a range of scalability issues &amp;amp; and potential security problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Even then, you'd *still* have to rely upon cookies because when pages&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;contain frames, some browsers get confused and send back bogus&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"Referer" headers,&amp;nbsp; thereby busting virtualization.&amp;nbsp;&amp;nbsp; Path-based&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;virtualization also uses network resources less well,&amp;nbsp; due to the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;large number or redirects required to keep requests in &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"cannonical request-path-mangled form";&amp;nbsp; if you don't do this, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;subsequent clicks end up with the wrong "Referer" if you traverse &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a link of the form href="/…"&amp;nbsp; (thereby propagating the wrong value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;into your cookie).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course, there are some things that cannot be virtualized &lt;/SPAN&gt;&lt;EM&gt;transparently&lt;/EM&gt;&lt;BR /&gt;&lt;SPAN&gt;no matter what you do, such as a webapp that relies upon a singleton&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(e.g.: a modifiable database table.&amp;nbsp;&amp;nbsp;&amp;nbsp; However, all systems share this&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;limitation.&amp;nbsp; In cases like this, you no system can be totally transparent;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you'll have to write custom code to handle it.&amp;nbsp;&amp;nbsp; That said, this is not &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;usually a big issue in practice, because if you want to do hard-core testing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;of something like a personalization engine, you're probably going to &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;deploy your site to a testing box anyhow.&amp;nbsp; Seeing the html, images, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jsps, &lt;/SPAN&gt;&lt;EM&gt;etc&lt;/EM&gt;&lt;SPAN&gt;. is usually plenty for the collaborative phase of development.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to do something fancy like virtualize a website that contains&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;links of the form&amp;nbsp; href="http:/…", that's quite easy to do.&amp;nbsp;&amp;nbsp; Your site&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;probably does not (and should not) contain many links of this form,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but just in case you need to deal with them, there are a few different&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;techniques available.&amp;nbsp; Rather than re-hash these techniques here,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;have a look at my earlier discussion of this topic:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://issues.alfresco.com/browse/WCM-128" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/browse/WCM-128&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for &lt;/SPAN&gt;&lt;A href="http://issues.alfresco.com/browse/AWC-1140" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/browse/AWC-1140&lt;/A&gt;&lt;SPAN&gt; ,&amp;nbsp; that is an issue&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;with the Alfresco webapp itself, not the virtualization server. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;These are different programs, and they do very different things.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can't be&amp;nbsp; "in two places at once"&amp;nbsp; within Alfresco's GUI,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but you *can* be in arbitrarily many places at once when it comes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to viewing/surfing the website(s) this GUI has helped you to create.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When start providing fancier review tasks in our workflow system,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the power this gives you will become much more obvious.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At the moment, our workflows are rather simple; it's our first release,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and a lot of what's "under the hood" has not been exposed yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It will be. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are a lot of subtle issues here, and I realize I'm covering them&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at a brisk pace.&amp;nbsp;&amp;nbsp; You are asking some great questions.&amp;nbsp;&amp;nbsp; It might be &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;time to write a wiki article on wildcard SSL certs, even if my rather &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;terse explanation here is adequate for you; it might not be for others. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco's enterprise customers have been very happy with our&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;approach to virtualization, but then they have the benefit of talking&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and/or meeting with its architect/developer (&lt;/SPAN&gt;&lt;EM&gt;i.e.&lt;/EM&gt;&lt;SPAN&gt;: me!), and getting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a guided tour. Over the next few days &amp;amp; weeks, I'll try to spruce up&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the wiki to bring at least some of that to everybody else. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have any other questions, please post them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; - Jon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2007 17:46:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/virtualization-urls-hostnames/m-p/72455#M47095</guid>
      <dc:creator>jcox</dc:creator>
      <dc:date>2007-03-06T17:46:58Z</dc:date>
    </item>
  </channel>
</rss>

