Tomcat4.0 Configuring the virtual directory is in Server.xml, join between host>:
Context> To add a new virtual directory, just add a new file, for example: Text.xml
XML Version = '1.0' Encoding = 'UTF-8'?> Context>