Book Image

Liferay Beginner's Guide

Book Image

Liferay Beginner's Guide

Overview of this book

Table of Contents (19 chapters)
Liferay
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
PayPal Test Account Configuration
Index

Time for action – virtual host configuration


Let's configure virtual hosting for the Games and Sports community.

  1. Locate host file from your machine and open it in a text editor. It is the same host file which we edited in an earlier section.

  2. Now in the host file, add the following line at the end of the file and save:

     127.0.0.1 sports.cignexneighbourhood.com
  3. Again, we need to configure Apache configuration for new settings. So please open the httpd.conf file in a text editor. This is the same file which we edited in the previous section.

  4. At the end of the file, add the following lines of code:

     <VirtualHost *:80>
       ProxyPreserveHost On
       ProxyPass / http://localhost:8080/
       ProxyPassReverse / http://localhost:8080/
       ServerName sports.cignexneighbourhood.com
     </VirtualHost>
    
  5. Stop the Apache web server and start again.

  6. Start the Tomcat server, if it is stopped.

  7. Sign in to the Neighborhood portal using the admin credentials (URL: http:// neighborhood.cignex.com / User Name / Password...