Tomcat 6 has been installed by my hosting provider, and I don't know how it is connected to Apache. I'm not a technical expert, and I'm only looking for a solution.
This is my server.xml <Server port="21305" shutdown="SHUTDOWN"> <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> <Listener className="org.apache.catalina.core.JasperListener" /> <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" /> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> <GlobalNamingResources> <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /> </GlobalNamingResources> <Service name="Catalina"> <Connector port="21309" protocol="AJP/1.3" /> <Engine name="Standalone" defaultHost="pa.be" jvmRoute="tomcat114"> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> <Host name="pa.be" appBase="/home/virtual/site231/fst/var/www/html" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Alias>www.pa.be</Alias> --- On Tue, 11/10/09, Christopher Schultz <ch...@christopherschultz.net> wrote: > From: Christopher Schultz <ch...@christopherschultz.net> > Subject: Re: Hand Authentication to Apache > To: "Tomcat Users List" <users@tomcat.apache.org> > Date: Tuesday, November 10, 2009, 9:15 PM > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Ivan, > > On 11/10/2009 2:26 PM, Ivan Eulaers wrote: > > Today, Tomcat has been installed on my server. When I > now want to access those secured directories, I get an error > by Tomcat "The requested resource is not available". How can > I repair this? > > Are you trying to replace Apache httpd with Tomcat? If so, > Tomcat > doesn't support .htaccess files. > > > I've tried adding tomcatAuthentication="false" to > <Connector > > port="21309" protocol="AJP/1.3" /> and restarted > Tomcat, but this was > > not the solution. > > tomcatAuthentication="false" will allow any authentication > information > from Apache httpd to flow into Tomcat, but you still have > to configure > access appropriately based upon roles. > > > Users should be able to browse certain subdirectories > as follow: > > - User A, B, C should be able to access https://www.../extranet/client1/ > > and its > subdirectories > > - User A, D, E, F should be able to access https://www.../extranet/client2/ > > and its > subdirectories > > > > .htaccess-listing > > ================= > > > > # STRONG HTACCESS PROTECTION > > <Files ~ "^.*\.([Hh][Tt][Aa])"> > > What, no access to .../.htable files? > > It's tough to guess what is being forwarded to Tomcat. Can > you show us > your JkMount or <Proxy> directives that you have > configured? > > Also, please provide a specific example of a URL that fails > to load > properly, what the error is, and what you expected to > happen. > > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAkr5yfYACgkQ9CaO5/Lv0PDPLACeIP2nLA8U8yB2W8BH1rkbswZx > gYkAnR3q1h80kufY3dZx1dFaCTuXKig/ > =yloJ > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org