• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Changing the URL

 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using Tomcat -5.0.25 , i had made an application named PED and placed it in the webapps so when i type http://localhost:8080/PED . The application is working fine. Now what i want is to do something so that when i type www.PED.com , the application should run. For this i read the Tomcat Docs came to know about Alias Tag in HOST. And also of appBase attribute form where our applications are found. I put the Alias Tag and gave the hello. And also changed the appBase attrib. to webapps/PED . Now i thought that writing http://hello:8080 would start my application but that didn't happened.Even only placing the Alias tag and trying http://hello:8080/PED didn't work . Please let me know about this and also how the port is mapped .

I am in immediate need.
Please help me out.

Thanks in advance.

Bye
Mohit.
 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Mohit,

I once tried something like this and it worked.

There is a Host file in windows which allows u to map urls to an IP.
U can enter the following lines to map ur projecto an IP
127.0.0.1www.myproject.com (or anything)

so now to access ur application u enter : www.myproject.com:8080/ped

The host file can be found in:
Windows 95/98/Me c:\windows\hosts

Windows NT/2000/XP Pro c:\winnt\system32\drivers\etc\hosts

Windows XP Home c:\windows\system32\drivers\etc\hosts

Backup the file before u edit.

Pavan.
 
Liar, liar, pants on fire! refreshing plug:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic