Time for action – virtual host configuration
Let's configure virtual hosting for the Games and Sports community.
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.
Now in the host file, add the following line at the end of the file and save:
127.0.0.1 sports.cignexneighbourhood.com
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.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>
Stop the Apache web server and start again.
Start the Tomcat server, if it is stopped.
Sign in to the Neighborhood portal using the admin credentials (URL:
http:// neighborhood.cignex.com
/ User Name / Password...