Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Rochad Tlusty
Virtual host settings and URL's
May 31, 2013 12:54 PM
Answer

Rochad Tlusty

Rank: Junior Member

Posts: 42

Join Date: January 18, 2012

Recent Posts

I'm currently trying to shorten the URLs on our site from virtualhost.com/web/site/friendlyURL to just be virtualhost.com/friendlyURL. In the portal setting, the virtual host is set to localhost. For the site settings, the public page virtual host is set to xyz.com, and the friendlyURL for the site is /something. So xyz.com/web/something is mapped to xyz.com. Now all of the links that the portal generates are correct (like xyz.com/dashboard for our dashboard page), but the pages are not there, and the error in the logs says

119:33:07,943 INFO  [PortalImpl:4873] Current URL /dashboard generates exception: null


Also, when I look at the Site Pages for a particular page on our site, it says the friendlyURL is
1http://xyz.com/web/something [/dashboard]
where the content in the square brackets is the input field for the setting.

Any idea why this would be happening?


Edit: I should also mention that going directly to xyz.com/web/site/dashboard works correctly
Bart Simpson
RE: Virtual host settings and URL's
June 2, 2013 10:28 PM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 524

Join Date: August 29, 2011

Recent Posts

What are the settings for host you have given in control panel -> Portal Instance ?
Rochad Tlusty
RE: Virtual host settings and URL's
June 3, 2013 8:16 AM
Answer

Rochad Tlusty

Rank: Junior Member

Posts: 42

Join Date: January 18, 2012

Recent Posts

The control panel -> Portal Settings virtualhost property is set to localhost. My understanding is that we want this to be set to localhost, so that the virtual host set in the site settings is unique. We could set the portal virtual host to be xyz.com, but the the site setting would need some friendly url like xyz.com/site/pages, and we are trying to have just xyz.com/pages.
Adnan Yaqoob
RE: Virtual host settings and URL's
October 29, 2015 9:19 AM
Answer

Adnan Yaqoob

Rank: Junior Member

Posts: 25

Join Date: March 24, 2014

Recent Posts

Rochad,
This seems to be an old thread. Is your problem resolved? if not, I can provide you the details how we are using it successfully

Adnan