Apache – How to change host Name for Apache tomcat server?


I installed Apache Tomcat 6.0,I tested with simple Application it's working fine.but every time I calling my app with localhost:8080 in the browser.

I want to change host name(localhost) to something like subbu.for this I tried in the following way.

I open command prompt and entered drivers and after selected etc folder, open host file .in this file I changed subbu instead of localhost.After did this I restarted my system and started apache server and entered in my browser like subbu:8080.it's not working.

I hope,you understand what I faced problem.

How can I resolve this.

Best Solution

In /etc/hosts change the line       localhost

to be       localhost subbu
Related Question