Rookie's Learning Note of changing context path

Context Path of portal can be changed by following the steps(eg. root-->portal):
1. Add portal.ctx=/portal to portal-ext.properties file(create a new if it does not exist by you yet).
2. Rename the "ROOT" webapp folder to "portal".
3. Locate the context configuration file "ROOT.xml" under <installation-path-of-your-apache-tomcat>\conf\Catalina\localhost and rename it to "portal.xml",then correct the path attribute to "/portal".
4.Start the server and we can access Liferay by www.liferay.com/portal.

Questions related to two instances:
It seems that it's impossible for two instances to have two different Context Paths in one portal. If not , how can we achieve it?

Backup about how to run a new instance(e.g www.vcvijayan.com):
1.Login as admin and navigate to Control Panel→ Portal Instances,add a new instance and save it
2.To get the virtual host work we need to add it in hosts file.Navigate to C: → Windows → System32 → Drives → etc → hosts file
3.Append the following line:127.0.0.1 www.vcvijayan.com
4.Restart the server and access the URL in brower: www.vcvijayan.com:8080,done.

Questions about accessing the new instance from different URL:
What's the essential difference here between accessing the URL www.127.0.0.1:8080 and www.vcvijayan.com:8080 ?  

Blogs
Do you want answers?
Two portal instances in different context paths would require two deployments of the portal to those paths. As Liferay interfaces with its plugins, it needs some code on the global classpath. Deploying a plugin would leave open the question, to which of the two portals it should go. But the "instances" you mentioned are a good workaround. If you truly need separate codebase, you need a separate tomcat installation.

For the difference of accessing 127.0.0.1 and www.vcvijayan.com you might want to read about "name based virtual host". In short: HTTP contains the hostname that you request a document from - and the server can decide what content to serve based on the host name.
Hi Olaf,
Thanks for the reply. I've been investigated it for some time,and it is really of great help for me.

I can understand the first question with your help. While as to the second one,I found that when I accessed 127.0.0.1 and navigated to control panel,I can't see the server related information,so I wonder what is the purpose of not giving permission to access it.
If you use if for multi-tenancy (e.g. have different customers on the same portal, each with their own instance) you don't want everybody to install new plugins - because the plugins are the components that are shared between all instances on the same server. The same goes for reindexing etc - There's one "central" instance for server maintenance, the rest is local to each instance (e.g. "portal" section like user management etc.)
The monetary condition could but millions their <strong><A href="http://www.uktiffanysjewellery.com/">Tiffany UK</A></strong>girlfriends diamond engagement rings. The create a difference is going to be the aforementioned economy. Diamond <strong><A href="http://www.uktiffanysjewellery.com/tiffany-bracelets/">Tiffany Bracelets</A></strong>
rings can extremely expensive, specifically at shopping center
any maxed out demand card <strong><A href="http://www.uktiffanysjewellery.com/tiffany-necklaces/">Tiffany Necklaces</A></strong> within your quest to acquire her the ring she has her center create on. There are destinations in which you <strong><A href="http://www.uktiffanysjewellery.com/tiffany-earrings/">Tiffany Earrings</A></strong>
could possibly get reduced price diamond rings, but how can the much
the large boys through the <strong><A href="http://www.uktiffanysjewellery.com/tiffany-rings/">Tiffany Rings</A></strong>mall?