<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Virtual hosting Communities</title>
  <link rel="self" href="https://liferay.dev/ca/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=87159" />
  <subtitle>Virtual hosting Communities</subtitle>
  <id>https://liferay.dev/ca/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=87159</id>
  <updated>2026-05-13T20:28:54Z</updated>
  <dc:date>2026-05-13T20:28:54Z</dc:date>
  <entry>
    <title>RE: Virtual hosting Communities</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87179" />
    <author>
      <name>Michael Young</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87179</id>
    <updated>2006-09-17T16:15:47Z</updated>
    <published>2006-09-17T16:15:47Z</published>
    <summary type="html">looking like the late nov timeframe</summary>
    <dc:creator>Michael Young</dc:creator>
    <dc:date>2006-09-17T16:15:47Z</dc:date>
  </entry>
  <entry>
    <title>RE: Virtual hosting Communities</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87177" />
    <author>
      <name>sue chen</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87177</id>
    <updated>2006-09-17T00:24:57Z</updated>
    <published>2006-09-17T00:24:57Z</published>
    <summary type="html">Michael:&lt;br /&gt;&lt;br /&gt;When will be the next release? Will it be 4.2?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Sue</summary>
    <dc:creator>sue chen</dc:creator>
    <dc:date>2006-09-17T00:24:57Z</dc:date>
  </entry>
  <entry>
    <title>RE: Virtual hosting Communities</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87175" />
    <author>
      <name>Michael Young</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87175</id>
    <updated>2006-09-16T19:11:49Z</updated>
    <published>2006-09-16T19:11:49Z</published>
    <summary type="html">It&amp;#39;s not in a released version. You have to grab the trunk from SVN.&lt;br /&gt;&lt;br /&gt;Another thing we did was upgrade the the portal to servlet 2.4. This allows us to control whether rd.include or rd.forward will trigger the filter chain. &lt;br /&gt;&lt;br /&gt;This will allow us to start developing a liferay url rewrite filter so we can get around the restricted paths -- among other things that this can open up for us.</summary>
    <dc:creator>Michael Young</dc:creator>
    <dc:date>2006-09-16T19:11:49Z</dc:date>
  </entry>
  <entry>
    <title>RE: Virtual hosting Communities</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87173" />
    <author>
      <name>Chad Shryock</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87173</id>
    <updated>2006-09-16T03:01:22Z</updated>
    <published>2006-09-16T03:01:22Z</published>
    <summary type="html">What version of the code will have this feature?&lt;br /&gt;&lt;br /&gt;I am downloading the Liferay Portal Enterprise EAR.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Chad.&lt;br /&gt;&lt;br /&gt;&lt;img alt="emoticon" src="@theme_images_path@/emoticons/cool.gif" &gt;</summary>
    <dc:creator>Chad Shryock</dc:creator>
    <dc:date>2006-09-16T03:01:22Z</dc:date>
  </entry>
  <entry>
    <title>RE: Virtual hosting Communities</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87171" />
    <author>
      <name>Joel Kozikowski</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87171</id>
    <updated>2006-09-14T22:19:27Z</updated>
    <published>2006-09-14T22:19:27Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Well, I found it.  This was added to the VirtualHostFilter:&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;
	private boolean _isValidFriendlyURL(String friendlyURL) {
		String[] keywords = PropsUtil.getArray(
			PropsUtil.LAYOUT_FRIENDLY_URL_KEYWORDS);

		for (int i = 0; i &amp;amp;lt; keywords.length; i++) {
			if ((LayoutFriendlyURLException.validate(friendlyURL) &amp;amp;gt; -1) ||
				(friendlyURL.indexOf(keywords[i]) != -1)) {

				return false;
			}
		}

		return true;
	}
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;So, it seems to be related to the &lt;strong&gt;layout.friendly.url.keywords&lt;/strong&gt; setting.&lt;br&gt;&lt;br&gt;I can see (sort of) the desire to prevent the key words from being used "as is", but the line&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;
friendlyURL.indexOf(keywords[i]) != -1)) 
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;imples that if the URL &lt;em&gt;contains&lt;/em&gt; the keyword, then it is invalid.  Well, "c", being a keyword, qualifies.&lt;br&gt;&lt;br&gt;I'm going to change it so the keyword has to be at least two characters before the "contains" rule is applied. Any complaints?&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Joel Kozikowski</dc:creator>
    <dc:date>2006-09-14T22:19:27Z</dc:date>
  </entry>
  <entry>
    <title>RE: Virtual hosting Communities</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87169" />
    <author>
      <name>sue chen</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87169</id>
    <updated>2006-09-14T22:05:24Z</updated>
    <published>2006-09-14T22:05:24Z</published>
    <summary type="html">my $.02:&lt;br /&gt;I am guessing. Maybe the system interpret &amp;#34;c&amp;#34; as a keyword as the context &amp;#34;/c&amp;#34;. If that is the case, you might need to change that interpretation.</summary>
    <dc:creator>sue chen</dc:creator>
    <dc:date>2006-09-14T22:05:24Z</dc:date>
  </entry>
  <entry>
    <title>RE: Virtual hosting Communities</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87167" />
    <author>
      <name>Joel Kozikowski</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87167</id>
    <updated>2006-09-14T21:53:21Z</updated>
    <published>2006-09-14T21:53:21Z</published>
    <summary type="html">Well, I found a rather amusing (but at the moment, annoying) bug in the new virtual hosting system that I&amp;#39;m not sure was there before (but I can&amp;#39;t be sure).&lt;br /&gt;&lt;br /&gt;For some reason, you can not use a friendly URL that contains the letter &amp;#34;c&amp;#34; in it!  If you try to save a URL that has &amp;#34;c&amp;#34; anywhere in it, the system complains with &amp;#34;Please use a URL that does not conflict with the keyword &amp;#34;c&amp;#34;.  Worse, if any friendly URLs existed prior to switching to the virtual host system, those links are no longer accessible!&lt;br /&gt;&lt;br /&gt;I&amp;#39;m looking for the issue now, but if any of you guys have any hints, I could use the help!</summary>
    <dc:creator>Joel Kozikowski</dc:creator>
    <dc:date>2006-09-14T21:53:21Z</dc:date>
  </entry>
  <entry>
    <title>RE: Virtual hosting Communities</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87165" />
    <author>
      <name>Joel Kozikowski</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87165</id>
    <updated>2006-09-14T16:32:15Z</updated>
    <published>2006-09-14T16:32:15Z</published>
    <summary type="html">The patch has been applied by the Liferay team (and modified slightly) to the main source code trunk and is in Subversion now.  Get the latested source from Subversion rather than using my patch.&lt;br /&gt;&lt;br /&gt;I just checked out the code (replacing my version with what is now &amp;#34;official&amp;#34;), and my quick tests show everything works as expected.  A few comments:&lt;br /&gt;&lt;br /&gt;Control of activation of the feature has been moved to &lt;strong&gt;/portal/portal-ejb/classes/system.properties&lt;/strong&gt; vs. the old &lt;strong&gt;portal.properties&lt;/strong&gt; file. The option is now named &lt;strong&gt;com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter&lt;/strong&gt;.  I was unaware of the &amp;#34;system.properties&amp;#34; file, but that is a better place for it.&lt;br /&gt;&lt;br /&gt;Note that the default setting for this is &amp;#34;true&amp;#34;, so you only have to do something to turn it OFF.  I had &amp;#34;false&amp;#34; in mine because activating it can potentially cost you one database hit per query. In reality, the Hibernate caching mechanism will probably eliminate most if not all of those, but if your not using virtual hosting at all, it doesn&amp;#39;t hurt to turn off.&lt;br /&gt;&lt;br /&gt;My original patch mentioned an option to turn on and off the portal&amp;#39;s default use of the &amp;#34;short form&amp;#34; of the URL (e.g. whether or not you wanted menu options to use the &lt;em&gt;www.virtualdomain.com/page1&lt;/em&gt; version (the &amp;#34;short form&amp;#34;), or the &lt;em&gt;www.virtualdomain.com/web/community_x/page1&lt;/em&gt; version (the &amp;#34;long form&amp;#34;).  That option has been removed, and the system will always generate the short form.&lt;br /&gt;&lt;br /&gt;I can&amp;#39;t argue with the decision. I was unsure of people&amp;#39;s desire to use the long or short form (though I will most certainly want to use the short form).  Note that this option does NOT affect legacy URLs - the &amp;#34;long form&amp;#34; will always be accepted by the server and processed correctly.&lt;br /&gt;&lt;br /&gt;Bottom line: if you want to use the feature, get the latest build. That&amp;#39;s all - everything will work without the need to customize any settings. &lt;img alt="emoticon" src="@theme_images_path@/emoticons/big_grin.gif" &gt;&lt;br /&gt;&lt;br /&gt;Thanks to the Liferay team for getting this patch applied so quickly!</summary>
    <dc:creator>Joel Kozikowski</dc:creator>
    <dc:date>2006-09-14T16:32:15Z</dc:date>
  </entry>
  <entry>
    <title>RE: Virtual hosting Communities</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87163" />
    <author>
      <name>Michael Young</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87163</id>
    <updated>2006-09-14T05:20:28Z</updated>
    <published>2006-09-14T05:20:28Z</published>
    <summary type="html">Awesome Joel. Testing it out now...</summary>
    <dc:creator>Michael Young</dc:creator>
    <dc:date>2006-09-14T05:20:28Z</dc:date>
  </entry>
  <entry>
    <title>RE: Virtual hosting Communities</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87161" />
    <author>
      <name>Joseph Shum</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87161</id>
    <updated>2006-09-14T05:12:19Z</updated>
    <published>2006-09-14T05:12:19Z</published>
    <summary type="html">sounds like something i need also. will be checking it out. &lt;br /&gt;thanks Joel.</summary>
    <dc:creator>Joseph Shum</dc:creator>
    <dc:date>2006-09-14T05:12:19Z</dc:date>
  </entry>
  <entry>
    <title>Virtual hosting Communities</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87158" />
    <author>
      <name>Joel Kozikowski</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87158</id>
    <updated>2006-09-13T21:07:35Z</updated>
    <published>2006-09-13T21:07:35Z</published>
    <summary type="html">This is a split from &lt;a href="http://www.liferay.com/web/guest/community/forums/message_boards/message/86725"&gt;&lt;span style="color: #0000FF"&gt;this topic&lt;/span&gt;&lt;/a&gt; with a more meaningful subject...&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve got the first version of this completed, and a &lt;a href="http://support.liferay.com/browse/LEP-1284"&gt;&lt;span style="color: #0000FF"&gt;patch submitted to JIRA (LEP-1284)&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Feedback is welcome.  So far, its perfect for my needs (of course it is - I wrote it! &lt;img alt="emoticon" src="@theme_images_path@/emoticons/tongue.gif" &gt;)</summary>
    <dc:creator>Joel Kozikowski</dc:creator>
    <dc:date>2006-09-13T21:07:35Z</dc:date>
  </entry>
</feed>
