O'Reilly logo

Liferay Portal 6 Enterprise Intranets by Jonas X. Yuan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Virtual hosting

Generally speaking, virtual hosting is a method that servers like web servers use to host more than one domain name on the same computer, sometimes on the same IP address.

For example, the community "Book Street" has both public and private pages. For public pages, to access a page say "Home", you need to type the URL http://localhost:8080/web/book-street/home. In most cases, you would like to remove "/web/book-street/" and to expect "/home" only with a friendly domain name like street.bookpub.com. That is, for the public pages of community "Book Street", the URL becomes "http://street.bookpub.com:8080/". This would be a nice feature.

Setting up virtual hosting

Suppose that you have a domain name: street.bookpub.com and you want ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required