Type: Regression Bug
Affects Version/s: 6.1.30 EE GA3, 6.1.X EE
Environment:Tomcat 7 + MySQL 5. Portal 6.1.30 EE GA3
Tomcat 7 + MySQL 5. Portal 6.1.x GIT ID: 3aac7133b7241e7449dba4d093e62173c0d4627e
Tomcat 7 + MySQL 5. Portal 6.2.x GIT ID: 841429d6a56bb6ffd736d14762727f5b8331ca73
When trying to access another site from a different machine, the user will be redirected to localhost.
This only happens when you're trying to access your Liferay instance from another system.
Steps to reproduce:
1) Add blank site
2) Click Site pages
3) add Test Page
4) Click 'view pages'
You will see a blank page in Test Site
It will redirect you to localhost:8080 and in this case, there isn't a Liferay instance running on localhost.
Note for QA: You don't have to use a separate machine or VM to trigger the issue; it's enough if you access the portal using your primary host name (something other than localhost).