Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am using a webapplication using simple jsp's, servlet and Struts. I am using Jetty 6.1.26 as a webserver. Is it possible for me to shorten the url that i have. For e.g.

I know that i will always be using http://hostname:port/webappname in the begining of each and every resource that i would be accessing.

is it possible for me to just type webappname in the browser address and that will take me to above location?

I think it might be possible by bookmark? but i dont want my each and every client to bookmark page. Is it possible to do above. I was looking at forum and i think proxyPass does something similar? If it is then can someone guide me though how i can use it and if any sample examples would be helpful?

Thanks in advance.

share|improve this question
    
If you use port 80 instead of some other port you can ommit the port at all. As 80 is the default http port. –  cmmi Apr 28 '11 at 13:54
add comment

migrated from stackoverflow.com Apr 28 '11 at 16:57

This question came from our site for professional and enthusiast programmers.

1 Answer

Have a read in the Jetty documentation on Virtual Hosts

http://docs.codehaus.org/display/JETTY/Virtual+hosts

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.