Apache, Tomcat and .htaccess

Well I mastered using .htaccess with the sambar server no problem, but I just cannot seem to get it to work with the Apache Tomcat (version 3.0)

Basically where would you put the .htaccess file as some documentation that I have read say you need to put it in the tomcat.conf file - but I don’t have one!

For sambar I created a ‘password’ folder which is the folder that I wanted to protect and then placed the .htaccess and .htpasswd in that folder…

Is this still correct when using Tomcat? Aas its working on my machine (sambar) but when I copy it to the Tomcat serever it doesn’t :confused:

If anyone can help or even direct me to some good info - oh and tomcat manual would be great too :wink: plus do I need to check any other files to make sure i have correct permissions?

Thanks

Sarah

If anyone can help or even direct me to some good info - oh and tomcat manual would be great too plus do I need to check any other files to make sure i have correct permissions?
To put it lightly, configuring Tomcat is a ***** (word choice left as an exercise for the reader). That said, Tomcat is one of the most stable and versatile servlet containers that I’ve used (biased opinion since I contributed to its predecessor). If you installed the complete Tomcat distribution from http://jakarta.apache.org then see the examples installed in the webapps/examples' directory. You can use these examples to test that Tomcat is installed and working correctly and as a basis for your own projects. Some Tomcat configuration settings need to be placed in Apache's httpd.conf’ file as they must be initialized on server startup. Online documentation and other information on Tomcat can be found at http://jakarta.apache.org/tomcat/index.html.

  • Marshall

Marshall,

cheers for the info, will dig into it. I certainly have had no problems with Tomcat at all works great - I think its maybe too old a version!

Sarah