I already post this same message on Beginners corner but somehow it looks this is the place for it.
So i will post it here too. Perhaps someone can aswer this...
I have JBoss 3.2.2RC1 and all works fine.
My web application is sandy.war and it is well
deployed. I can access to it on http://localhost/sandy/index.jsp
Then i read everything here about virtual-host and
included on WEB-INF dir of my sandy app. a
jboss-web.xml file in wich i wrote these lines:
<jboss-web>
<context-root>/</context-root>
<virtual-host>www.sandy.dev</virtual-host>
</jboss-web>
i restarted JBoss Server and there seems everything is okay, yet now i cannot access to my app.
http://www.sandy.dev does not work at all.
http://localhost/sandy/index.jsp does not exist any more...
What is happening here? Is this a problem of DNS routing? I have Win XP PRO and IIS is turned OFF.
...i really need help from someone here... ;(
thanx anyway.
edit your hosts file to include www.sandy.dev and point it 127.0.0.1, localhost/sandy no longer works because you told it the context for that webapp is now /.
Or change the context to /sandy and you will get back the localhost/sandy.
Good Luck
Cam