GeeCON Prague 2014*
The moose likes Servlets and the fly likes Servlet Alias Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet Alias" Watch "Servlet Alias" New topic
Author

Servlet Alias

Malhar Barai
Author
Ranch Hand

Joined: Aug 17, 2001
Posts: 399
hi all
help me to write "servlet alias" in Apache 1.3.6. in zone.properties i wrote the follwoing
servlet.(classfile).code=(alias)
but still the alias was not working...
any modifications...plz guide me...
thanx
malhar


Malhar Barai
SOA & Java Book
Malhar Barai
Author
Ranch Hand

Joined: Aug 17, 2001
Posts: 399
Some plzzzz HELP...its really urgent...
thanx
malhar
Originally posted by malhar barai:
hi all
help me to write "servlet alias" in Apache 1.3.6. in zone.properties i wrote the follwoing
servlet.(classfile).code=(alias)
but still the alias was not working...
any modifications...plz guide me...
thanx
malhar

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16101
    
  21

There are 3 different ways - 2 for Tomcat V3 and 1 for Tomcat 4. For Tomcat V3, I recommend using the mod_jk module, which passes stuff over like so:
JkMount/*.jsp ajp13
JkMount /jsp/*.jsp ajp13
JkMount/servlet/* ajp13
If I haven't gotten myself confused, you can alias these mount points using the Apache Alias statement - that would be to rewrite the URL before it got passed over to Tomcat
[This message has been edited by Tim Holloway (edited October 16, 2001).]


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet Alias