-
To Access in the web
Hello Everybody!!!!!
I have developed a client server program which runs fine
i.e I can access the html page from the client system by typing
http://IPAddress:Portnumber if I have started tomcat on my server
Up to this I have no problem but instead of http://IPAddress:Portnumber
I want to type some name like www. xyz. com and access it on my client how can i do that???????
Please help me
Thanks,
raghu
-
Edit file conf/servers.xml in the path of your tomcat server folder.I think it is a HOST tag responsible,then also create webapps-<name of your host> folder.I will check today at my work my pc configuration and will post them.
-
Thanks for your reply!!!!!!
I have edited the server.xml and
changed
<Host name="localhost" appBase="webapps">
to <Host name=" www . hosting . com " appBase="webapps">
but it is not working
Thanks,
raghu
-
You should also edit hostname in your system.The default value is 127.0.0.1=localhost.so you should make it 127.0.0.1=hosting.com
The second stuff,You shouldn't edit the host tag,add another one,create then folder webapss-hosting,then when you deploy a war file into the folder бкутфьу it to ROOT
-
-
windows xp sp2
what do u mean by this
when you deploy a war file into the folder бкутфьу it to ROOT
-
Sorry,when you create a war file,move it into the webapps-hosting folder and then rename it to ROOT
-
My servers.xml has the following:
Code:
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all example.
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
-->
</Host>
<Host name="hosting" appBase="webapps-hosting"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false"/>
I don't know how to declare another host on Windows,In linux i edit the /etc/hosts file,i add the following: