Results 1 to 8 of 8
Thread: To Access in the web
- 01-19-2009, 07:07 AM #1
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,
raghuLast edited by raghu9198; 01-19-2009 at 07:10 AM.
- 01-19-2009, 07:23 AM #2
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.
Last edited by serjant; 01-19-2009 at 07:25 AM.
- 01-19-2009, 07:44 AM #3
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
- 01-19-2009, 07:58 AM #4
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
- 01-19-2009, 08:00 AM #5
What OS do you use?
- 01-19-2009, 08:10 AM #6
windows xp sp2
what do u mean by this
when you deploy a war file into the folder бкутфьу it to ROOTLast edited by raghu9198; 01-19-2009 at 08:12 AM.
- 01-19-2009, 09:15 AM #7
Sorry,when you create a war file,move it into the webapps-hosting folder and then rename it to ROOT
- 01-19-2009, 09:17 AM #8
My servers.xml has the following:
I don't know how to declare another host on Windows,In linux i edit the /etc/hosts file,i add the following:Java 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"/>
Java Code:127.0.0.1 hosting
Similar Threads
-
Method access or field access
By carderne in forum New To JavaReplies: 2Last Post: 12-06-2008, 06:20 PM -
SQL Server and MS Access
By Hima in forum JDBCReplies: 0Last Post: 04-08-2008, 02:59 PM -
How to get next available number from MS access
By shahjehan in forum JDBCReplies: 3Last Post: 11-18-2007, 07:41 PM -
Access with MS SQL
By cachi in forum JDBCReplies: 1Last Post: 08-07-2007, 07:54 AM -
Help with access a database using Microsoft Access
By cachi in forum JDBCReplies: 1Last Post: 08-07-2007, 07:51 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks