Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-17209

Visiting resources mapped to virtual host will always goes to default home URL of the portal

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.1.0 CE RC1
    • Fix Version/s: 6.0.12 EE, 6.1.0 CE RC1
    • Labels:
    • Environment:
      Tomcat 7.0.12 + MySQL 5.1.56. Firefox 3.6.17. 6.0.x Revision 80275.
      Tomcat 7.0.12 + MySQL 5.1.56. Firefox 3.6.17. 6.1.x Revision 80275.
    • Branch Version/s:
      6.0.x
    • Backported to Branch:
      Committed

      Description

      Steps to reproduce:

      1) Start Liferay, make sure you are visiting Liferay at http://localhost:8080.
      2) Create a community.
      3) Add a page to created community.
      4) Set "Public Virtual Host" of created community to "virtualhost.com".
      5) Add "virtualhost.com 127.0.0.1" to your hosts.
      6) Visit http://virtualhost.com:8080

      Result:
      Visiting virtualhost.com is the same as localhost

      Expected Behavior:
      Visiting virtualhost.com should bring newly created community to user.

        Attachments

        1. Portal.java
          21 kB
        2. PortalImpl.java
          119 kB
        3. PortalUtil.java
          36 kB
        4. VirtualHostFilter.java
          11 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  7 years, 50 weeks, 6 days ago

                  Packages

                  Version Package
                  6.0.12 EE
                  6.1.0 CE RC1