Tuesday, April 7, 2015

Liferay Site/Organization Virtual Hosting

Generally in Liferay administration we create sites and organizations and each site and organization have unique URL to access these sites/organizations. Generally we will have friendly URL to access these sites/organizations in Liferay.

Each site/organization has its own friendly URL and it consist pattern like /web and site/organization name. When we see /web in the URL then we can consider that is Site/Organization in Liferay.

Site Example

Site Name:
LiferaySavvy
Site Friendly URL
/web/liferaysavvy
Complete URL Pattern
Host Name+ Site Friendly URL
Complete URL
http://localhost:8080 /web/liferaysavvy

Organization Example

Site Name:
LiferaySavvyORG
Site Friendly URL
/web/liferaysavvy
Complete URL Pattern
Host Name+ Organization Friendly URL
Complete URL
http://localhost:8080 /web/liferaysavvyorg

Generally in real time we won’t use friendly URL to access site/organization we will use unique domain name and that will be pointing to Liferay site/organization.to achieve this we will use Liferay virtual host configuration.

Liferay Virtual Host is way of accessing site/organization with real world domain names. In Production we use apache web server, domain vendor control panel configurations and finally we use Liferay virtual host configuration.

In development environment to replicate same kind of configuration in our local system we will follow some sequence of steps.

Assume we wanted to access our Liferay site/organization with URL like www.liferaysavvy.com  in our local system.

Steps:
  • Create Site/Organization
  • Configure Site URL with desired domain name www.sitename.com
  • In host file map 127.0.0.1 with your domain name

Liferay Site Virtual Hosting

Create Site

Access Liferay portal and login as Liferay Administration.

Go Control Panel from Admin Docbar.


Control panel we can see site section there click on sites link



Now in the sites page we can see Add button click on Add and select Blank Site



Once we click on Blank site we can see site creation form and it will ask basic details related to site like name and description. Please fill all details and click on save button then site will be created.



After successful site creation then it will navigate to site settings page there we can see many option related to site settings


In site setting page Right site section we can see Site URL link click on site URL then we can have provision to specify our site URL and this is the place we need to provide our desired domain name/site host name.
We have two kinds of pages in Liferay Site Public pages and Private pages. Public pages is can be accessed by all the site users but private pages can be accessed by only the user who is created  it means site admin and site owner can access.

We can provide two distinct Virtual Hosts (URL/Domain Name) for each set of pages. For accessing public pages we can give one Virtual Host (URL/Domain Name) and for private pages we can give other Virtual Host (URL/Domain Name).

When we click on Site URL link then we can have provision to give public pages Virtual Host and Private pages Virtual Host.

We need to provide valid URL/Host Name in Virtual Host input fields then click on save button. Now Our Site can be accessed by given site URL.



 As we know that at time of site creation we have chosen black site so that it does not have any pages.
Liferay site should have at least one page to access with URL now we need to create one site page for our newly created site (LiferaySavvy)

Now in the site Options page Left Site Section you can find Pages menu tab there you can see site pages link. Click on that so that we can create pages for site.


Now select public pages and under this we can create new page by clicking one Add Page option .when we click on Add Page it will open popup there  it will ask required page details. Once we fill detail then click on adds page button in the popup then page will be crated under site public pages section.



New page (home) will be created in the public pages section



Mapping Virtual Host Name with local system IP

This is final step in Liferay Site Virtual Host and here we need to map given Site URL with our Local System IP address (127.0.0.1)

Generally our local system IP is 127.0.0.1 and we need to map IP with Site URL in the system host file.

In every system OS we have host file there we will configure host names related to our local system. Based on Operating System we can find host file in different locations. Generally it will be under etc directory (etc/host)

For windows this file location as follows

C:\Windows\System32\drivers\etc


Now open host file in editor and map your Site URL with 127.0.0.1 in the new line in file and finally save the file then mapping will be completed.

127.0.0.1     www.liferaysavvy.com


Now open your desire browser, in the address bar ping your given Site URL then it will open your Liferay site.



Note:

In Development environment we are using only Application servers so we need to append Port number for Site URL when we access from browser.

If Site is already created then we need to access site setting page then follow the above steps to complete Liferay site virtual hosting.

Go to list of sites and select your desired site then click on Actions menu there we can find Site Administration.


Once we click on site administration then we can see configuration in Left side Menu when we click on that we can find site settings. In the Site Setting right side section you can see site URL there you need to enter your desired site URL name. Rest of the steps same as above.




Same way we can also configure virtual host for site private pages. You also follow same steps for Liferay Organizations to configure virtual host.

61 comments :

  1. I am glad to be a visitor of this consummate web site! , appreciate it for this rare info ! . free phone mockup

    ReplyDelete
  2. As being a Newbie, We’re permanently exploring online for articles which can be of help to me. Many thanks webflow developer

    ReplyDelete
  3. The Case For HIIT Cardio – Why You Should Concider it… By the way you might want to check out this cool site I found…… webflow development agency

    ReplyDelete
  4. But i can not create message board from Virtual host ip address , is there any solution ?

    ReplyDelete
  5. Hello! I’ve been following your blog for a while now and finally got the courage to go ahead and give you a shout out from Kingwood Texas! Just wanted to mention keep up the good work! web development companies

    ReplyDelete
  6. I’m not that much of a internet reader to be honest but your blogs really nice, keep it up! I’ll go ahead and bookmark your site to come back in the future. All the best web developer company

    ReplyDelete
  7. A good blog always comes-up with new and exciting information and while reading I have feel that this blog is really have all those quality that qualify a blog to be a one buy rdp

    ReplyDelete
  8. It can be tough to write about this topic. I think you did an excellent job though! Thanks for this! ux design agency

    ReplyDelete
  9. howdy, your websites are really good. I appreciate your work. bestarkserverhosting.com

    ReplyDelete
  10. And I can tell you, I have made a number of mistakes, hence lost substantial amount of money. Mediatemple coupon codes

    ReplyDelete
  11. The recent shift from traditional media to more direct media (social media) will result in PR firms specializing in or launching divisions devoted to blogs, social networking sites, mobile media and podcasts. tiktok

    ReplyDelete
  12. This is a correct blog for anybody who really wants to be made aware of this topic. You understand so much its practically challenging to argue along (not too I actually would want…HaHa). You certainly put the latest spin with a topic thats been discussed for decades. Great stuff, just wonderful! web design agency los angeles

    ReplyDelete
  13. Web hosting is the business practice of providing space and bandwidth on a high-powered computer server that is connected to the Internet at very high speeds. hosting24 coupon 2020

    ReplyDelete
  14. Wow! This could be one particular of the most useful blogs We have ever arrive across on this subject. Basically Fantastic. I am also an expert in this topic so I can understand your hard work. web design company los angeles

    ReplyDelete
  15. I conceive you have noted some very interesting details , regards for the post. converting websites

    ReplyDelete
  16. I was reading some of your content on this website and I conceive this internet site is really informative ! Keep on putting up. Limitless Referrals

    ReplyDelete
  17. Hello, this weekend is good for me, since this time i am reading this enormous informative article here at my home. Webhosting

    ReplyDelete
  18. When your website or blog goes live for the first time, it is exciting. That is until you realize no one but you and your. www.vrbonk.com

    ReplyDelete
  19. Another great thing about a promo code is that it can work great for both old and new customers. The reason is that the incentives have a great impact on the shopping experience of buyers, according to the research reports released by the Center for Neuroeconomics Studies at Claremont Graduate University. Check out this URL

    ReplyDelete
  20. It is important to know what the requirements of your website are. Only if you have an idea of what you need, Managed VPS Hosting you can look for them in the web hosting solutions.

    ReplyDelete
  21. Thanks for the blog loaded with so many information. Stopping by your blog helped me to get what I was looking for. edge apps

    ReplyDelete
  22. Positive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include. Prowebhosting

    ReplyDelete
  23. Web hosting server is a synonym for the platform which connects internet to a kind of hard drive, where all details about the website is stored. This is an article to bring clarity to the question of going with shared web hosting or dedicated web hosting for your online business. top web hosts in 2020

    ReplyDelete
  24. There is no web host that is completely perfect or can be recommended for all customers whether they are individuals or companies. Everyone has to decide the most suitable web hosting provider for him\her. In order to choose the best one; you will first need to determine your needs to facilitate the process of judging and evaluating different web hosting providers. There are many features that should be taken into consideration when you search for the best web hosting provider according to your needs and here, we wokehosting

    ReplyDelete
  25. Thank you because you have been willing to share information with us. we will always appreciate all you have done here because I know you are very concerned with our. dmca ignored hosting

    ReplyDelete
  26. This particular is usually apparently essential and moreover outstanding truth along with for sure fair-minded and moreover admittedly useful My business is looking to find in advance designed for this specific useful stuffs… שרת וירטואלי

    ReplyDelete
  27. Your blog provided us with valuable information to work with. Each & every tips of your post are awesome. Thanks a lot for sharing. Keep blogging.. Joe Ephgrave

    ReplyDelete
  28. This particular is usually apparently essential and moreover outstanding truth along with for sure fair-minded and moreover admittedly useful My business is looking to find in advance designed for this specific useful stuffs… europa-road.eu

    ReplyDelete
  29. Very informative post! There is a lot of information here that can help any business get started with a successful social networking campaign. photographe

    ReplyDelete
  30. I think that thanks for the valuabe information and insights you have so provided here. sviluppo siti web Corsico

    ReplyDelete
  31. Wonderful blog! I found it while surfing around on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Appreciate it. sites like fiverr com

    ReplyDelete
  32. I am definitely enjoying your website. You definitely have some great insight and great stories. WordPress Developer Brisbane

    ReplyDelete
  33. I haven’t any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.
    quenza software

    ReplyDelete
  34. Web hosting in general is a service, similar to Internet hosting service, where an organization is able to make and maintain their own website that is accessible by the World Wide Web. Web hosts are organizations that provide space on their servers, or ones they have leased from someone else, for personal usage as well as for sub-letting. So in a nut shell, organizations, small or big, require their own web space for communication purposes, both intra-organizations as well as, inter organization. On the other hand web designing deals with designing of a web page, a website to be precise, for an organization. While web hosting deals with providing space and an operating system according to a company's needs, web designing is more about graphics and largely helps in creating a layout for the website. ssd vps

    ReplyDelete
  35. I haven’t any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.
    คลินิกความงาม

    ReplyDelete
  36. I really appreciate this wonderful post that you have provided for us. I assure this would be beneficial for most of the people.
    먹튀검증커뮤니티

    ReplyDelete
  37. I am hoping the same best effort from you in the future as well. In fact your creative writing skills has inspired me.
    메이저놀이터

    ReplyDelete
  38. Thank you for some other informative blog. Where else could I get that type of information written in such an ideal means? I have a mission that I’m just now working on, and I have been at the look out for such information.
    SEO Company Australia

    ReplyDelete
  39. Writing with style and getting good compliments on the article is quite hard, to be honest.But you've done it so calmly and with so cool feeling and you've nailed the job. This article is possessed with style and I am giving good compliment. Best! Kesari Yoruba movie

    ReplyDelete
  40. The cheap vpn provider company you choose to store your web site and provide access to the world wide web SHOULD be your friend - your business partner. In fact, your web host SHOULD put your interests first. After all, if your web business soars to success, your web host shares in that success with a stable client base.

    ReplyDelete
  41. Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work.
    credit card processing agent

    ReplyDelete
  42. Awesome article! I want people to know just how good this information is in your article. It’s interesting, compelling content. Your views are much like my own concerning this subject. name for new company

    ReplyDelete
  43. Very useful post. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. Really its great article. Keep it up. Website Hosting

    ReplyDelete
  44. At the point when you have a site, probably the biggest cause of issues is regularly the picked web facilitating. Picking the right facilitating supplier for your online business is quite possibly the main choices you should make since it's something you can choose you have development in the short and medium term.99Designs Review

    ReplyDelete
  45. Nice post. I was checking constantly this blog and I’m impressed! Extremely useful info specially the last part I care for such information a lot. I was seeking this certain info for a long time. Thank you and good luck. 먹튀사이트

    ReplyDelete
  46. I really like your writing style, great information, thankyou for posting. 먹튀사이트

    ReplyDelete
  47. Wonderful blog! I found it while surfing around on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Appreciate it. แทงบอล

    ReplyDelete
  48. I am unable to read articles online very often, but I’m glad I did today. This is very well written and your points are well-expressed. Please, don’t ever stop writing. service dog training

    ReplyDelete
  49. Nice post. I was checking constantly this blog and I’m impressed! Extremely useful info specially the last part I care for such information a lot. I was seeking this certain info for a long time. Thank you and good luck. 메이저사이트

    ReplyDelete
  50. Good website! I truly love how it is easy on my eyes it is. I am wondering how I might be notified whenever a new post has been made. I have subscribed to your RSS which may do the trick? Have a great day! 메이저사이트

    ReplyDelete
  51. Someone Sometimes with visits your blog regularly and recommended it in my experience to read as well. The way of writing is excellent and also the content is top-notch. Thanks for that insight you provide the readers! 온라인바카라

    ReplyDelete
  52. I’m going to read this. I’ll be sure to come back. thanks for sharing. and also This article gives the light in which we can observe the reality. this is very nice one and gives indepth information. thanks for this nice article... https://www.ilounge.com/articles/how-can-i-buy-cheap-web-hosting-in-india

    ReplyDelete
  53. I really like your writing style, great information, thankyou for posting. 안전놀이터

    ReplyDelete
  54. Hello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work. 먹튀검증

    ReplyDelete
  55. Wonderful blog! I found it while surfing around on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Appreciate it. pandora one apk

    ReplyDelete
  56. Subsequently, stay in business. there's, of coursework, circumstances where this isn't material or turns into somewhat cloudy. Be positive to likewise ask about whether a host has as of late been engaged with a consolidation, gained what was before a broadly realized brand name, or dispatched a pre-owned brand. On the off chance that any of these apply, https://onohosting.com/

    ReplyDelete
  57. Very informative post! There is a lot of information here that can help any business get started with a successful social networking campaign. 먹튀검증

    ReplyDelete
  58. Nice post. I was checking constantly this blog and I’m impressed! Extremely useful info specially the last part I care for such information a lot. I was seeking this certain info for a long time. Thank you and good luck. 먹튀검증

    ReplyDelete
  59. I am not speaking about totally free pens and espresso mugs
    using your emblem to them, I am speaking in regards to the digital immediate obtain supplies.
    In the last a few years, it is now possible, due to the boom inside the on the web industry.
    Check out the bingo reviews to get additional information regarding particular online bingo site and you will earn extensive money.오피

    ReplyDelete
  60. Wonderful blog! I found it while surfing around on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Appreciate it. 안전놀이터

    ReplyDelete
  61. Nice to be visiting your blog once more, it has been months for me. Well this article that ive been waited for therefore long. i want this article to finish my assignment within the faculty, and it has same topic together with your article. Thanks, nice share. 안전놀이터

    ReplyDelete

Recent Posts

Recent Posts Widget

Popular Posts