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 – changing our portal name


We will be using Apache, which is most widely used as a web server to act as a proxy server to redirect all the requests it receives to the Liferay server behind it. The steps for this are as follows:

  1. Download and install the latest version of Apache. This would start Apache as a service.

  2. Navigate to conf folder inside Apache, which has a file called httpd.conf.

  3. Open the file and uncomment the following line:

    LoadModule proxy_module modules/mod_proxy.so
  4. Add the following lines at the end of the file, and then save the same:

    ProxyRequests On
    
    ProxyPass / http://localhost:8080/
    ProxyPassReverse / http://localhost:8080/
  5. Restart the server.

  6. We need to add a DNS entry for setting up a virtual host, so for the moment we will just add the host entry. Open the hosts file in C:\WINDOWS\system32\drivers\etc and add an entry as follows:

    127.0.0.1 neighborhood.cignex.com

What just happened?

Open your browser and hit http://neighborhood.cignex.com. You should be able to...