<?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>Multiple Virtual Hosts  and /web/guest</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119143797" />
  <subtitle>Multiple Virtual Hosts  and /web/guest</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119143797</id>
  <updated>2026-04-06T18:49:07Z</updated>
  <dc:date>2026-04-06T18:49:07Z</dc:date>
  <entry>
    <title>RE: Multiple Virtual Hosts  and /web/guest</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119142340" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119142340</id>
    <updated>2020-05-12T11:37:06Z</updated>
    <published>2020-05-12T11:37:06Z</published>
    <summary type="html">The simplest solution is to add a redirect in the reverse proxy. Decide, which url you like and then redirect e.g. from &lt;a href="http://www.myhost.com"&gt;www.myhost.com&lt;/a&gt; to myhost.com.&lt;br /&gt;That way, you only need one virtual host entry. This is probably the best solution. If possible, sites should have just one url.&lt;br /&gt;Other ways are more complicated. You could implement your own filter that does whatever is necessary. Or maybe you can use a Wrapper for VirtualHostLocalService that treats &lt;a href="http://www.myhost.com"&gt;www.myhost.com&lt;/a&gt; and myhost.com the same.&lt;br /&gt;Note: Liferay 7.3 allows you to set multiple virtual hosts.</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2020-05-12T11:37:06Z</dc:date>
  </entry>
  <entry>
    <title>Multiple Virtual Hosts  and /web/guest</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119143796" />
    <author>
      <name>Fredi B</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119143796</id>
    <updated>2020-05-12T10:19:30Z</updated>
    <published>2020-05-12T10:19:30Z</published>
    <summary type="html">Hello Liferay-Community,&lt;br /&gt;I managed to prevent /web/guest in the URL for Guests on my Liferay-Site by setting up the Virtual Host to the Domain of my site.&lt;br /&gt;&lt;br /&gt;Sadly this is only working with or without the www Subdomain.&lt;br /&gt;Virtual Host: www example com -- /web/guest will not be shown for visitors of my site using www example com&lt;br /&gt;Virtual Host: example com -- /web/guest will not be shown for visitors of my site using example com &lt;br /&gt;&lt;br /&gt;Is there a way to hide /web/guest for both options?&lt;br /&gt;&lt;br /&gt;Cheers, &lt;br /&gt;Fredi</summary>
    <dc:creator>Fredi B</dc:creator>
    <dc:date>2020-05-12T10:19:30Z</dc:date>
  </entry>
</feed>
