I have a client who wishes to have his servlets served as if they were part of the apache DirectoryIndex directove.
For example, they have a servlet called Main.do they want to enter http://www.domain.com/ and have this servlet show up.
as Main.do is a servlet and NOT a file as such, there is no such file called Main.do on the filesystem. So apache does not show this file.
Currently we have an index file with a meta refresh tag to redirect to /Main.do
Apache has JkMount /*.do ajp13 in its config file, so when the refresh occurs, it quite cheerfully sends the request of to tomcat and the website is displayed fine.
basicallty we want the Main.do file to be displayed without explicitly writing it in teh URL, much the same as a normal DirectoryIndex occurs.
Is this a possibility with the way Tomcat is configured in cpanel?
(Hope I have not confused...)
For example, they have a servlet called Main.do they want to enter http://www.domain.com/ and have this servlet show up.
as Main.do is a servlet and NOT a file as such, there is no such file called Main.do on the filesystem. So apache does not show this file.
Currently we have an index file with a meta refresh tag to redirect to /Main.do
Apache has JkMount /*.do ajp13 in its config file, so when the refresh occurs, it quite cheerfully sends the request of to tomcat and the website is displayed fine.
basicallty we want the Main.do file to be displayed without explicitly writing it in teh URL, much the same as a normal DirectoryIndex occurs.
Is this a possibility with the way Tomcat is configured in cpanel?
(Hope I have not confused...)