That's what I figured.  I thought I'd ask anyway.  I was wondering if there
was an "override" for some directory "under" example.

-----Original Message-----
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 18, 2002 9:07 AM
To: 'Tomcat Users List'
Subject: RE: What to do to http.conf and/or server.xml


If you have something under "example" and "example" is mapped to the AJP13
connector, requests for /example and anything under it are going to be
served by tomcat.  That's the point of the connector, to distribute the
requests to a particular area based on URL.  Since servlets don't have file
extensions, there's really no other way other than URL for apache or a
connector to know which requests need to be served by tomcat.

I think if you want apache to serve that content, you have to put it
someplace other than "/example".  Can anyone else confirm this?

John Turner
[EMAIL PROTECTED]


-----Original Message-----
From: Koes, Derrick [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 8:52 AM
To: 'Tomcat Users List'
Subject: What to do to http.conf and/or server.xml


I believe I have tomcat 4.0.4 and apache 2.0.39 working well together with
mod_jk (ajp13 connector).

I've put documentation files (static content) in my webapp that I'd like
apache to serve.  I can't seem to make this work.

 

For example, my webapp is in example.war which gets expanded in the webapps
directory as example (I already check, this does not interfere with the
examples shipped with Tomcat).

Under example I have a directory called docs.

I would like apache to serve all files in the docs directory, but maintain
my URL.

So I would like apache to handle http://serverName/example/docs
<http://servername/example/docs> .

 

Going to this URL, I can get to my files, but it's Tomcat.

 

I can add something like:

 

Alias /docs "C:/Program Files/Apache
Group/Jakarta/tomcat-4.0.4/webapps/example/docs"

 

<Directory "C:/Program Files/Apache
Group/Jakarta/tomcat-4.0.4/webapps/example/docs">

    AuthType Basic

    AuthName "Restricted Files"

    AuthUserFile "C:/Program Files/Apache Group/users"

    require user koes

    Options Indexes MultiViews

    AllowOverride None

    Order allow,deny

    Allow from all

</Directory>

 

to the httpd.conf file, but the URL has to be http://serverName/docs
<http://servername/docs> .

 

I tried adding

 

Alias /example/ "C:/Program Files/Apache
Group/Jakarta/tomcat-4.0.4/webapps/example/"

 

<Directory "C:/Program Files/Apache
Group/Jakarta/tomcat-4.0.4/webapps/example">

    AuthType Basic

    AuthName "Restricted Files"

    AuthUserFile "C:/Program Files/Apache Group/users"

    require user koes

    Options Indexes MultiViews

    AllowOverride None

    Order allow,deny

    Allow from all

</Directory>

 

but this doesn't seem to do anything.  The webapp mappings seem to take over
(probably desired).

 

Can anyone help me make this work?

 


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to