Oops, here are the files...
> How would you define the <Directory> in httpd.conf for the virtualhosts?
> Just add multiple <Directory> (s)? e.g.
> <Directory /examples>
> Options -Indexes
> </Directory>
> <Directory /webapps>
> Options -Indexes
> </Directory>
> The syntax appears to be ok after an apache.exe -t but....
>
> The DocumentRoot is ignored as the DRs are defined in <VirtualHost>...
> correct?
>
> Attached is a copy of the auto generated mod_jk.conf & the
> workers.properties file...
>
> ----- Original Message -----
> From: "Roberts, Eric" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, February 21, 2003 10:18 AM
> Subject: RE: 403 Forbidden - you don't have permission ... I'M STUCK!!
>
>
> 1) Yes each VH can have a Directory directive (as far as I can remember
:-))
> 2) I have the Tomcat Welcome page as the default page on our
installation -
> in mod_jk.conf I added the lines:
>
> JKMount / ajp13
> JKMount /* ajp13
>
> in addition to my normal webapp mounts.
>
> Apache now completely ignores it's own default directory and sends all
> "blank" requests to Tomcats ROOT context. Plus all the links to Manager,
> Admin etc work!
>
> Ciao
>
> -----Original Message-----
> From: tomcat guy [mailto:[EMAIL PROTECTED]]
> Sent: Freitag, 21. Februar 2003 17:13
> To: Tomcat Users List
> Subject: Re: 403 Forbidden - you don't have permission ... I'M STUCK!!
>
>
> I just noticed that! Like I was saying it had to be something simple.
The
> "default" <Directory /> was not set. I'll do another aaaarrrrggghhh....
> One word - documentation.
>
> Got another quick question now. Can you have a <Directory> setting for
> each virtualHost?
>
> Ok 2 questions. The default DocumentRoot is:
> DocumentRoot "D:/Apache/Apache2/htdocs" everything (all files) are being
> served under "D:/Apache/Tomcat4.1/webapps"
> Should the DocumentRoot be changed to this? Or does the connector handle
> this & "D:/Apache/Apache2/htdocs" is ok???
>
>
> ----- Original Message -----
> From: "Roberts, Eric" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, February 21, 2003 9:50 AM
> Subject: RE: 403 Forbidden - you don't have permission ... I'M STUCK!!
>
>
> Sorry - didn't get your attachments - but think the problem is in
httpd.conf
> Is your listen directive set?
>
> #
> # Listen: Allows you to bind Apache to specific IP addresses and/or
> # ports, in addition to the default. See also the <VirtualHost>
> # directive.
> #
> # Change this to Listen on specific IP addresses as shown below to
> # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
> #
> Listen 127.0.0.1:8080
>
> ...in other words its the port that could be causing the problem.
>
> HTH
> -----Original Message-----
> From: tomcat guy [mailto:[EMAIL PROTECTED]]
> Sent: Freitag, 21. Februar 2003 16:48
> To: Tomcat Users List
> Subject: Re: 403 Forbidden - you don't have permission ... I'M STUCK!!
>
>
> Bill, thanks for looking over the files...
> I checked the directory and everyone is set for file permissions. If they
> were not set wouldn't http://localhost:8080/examples be blocked? It
> accesses the same folder "D:/Apache/Tomcat4.1/webapps/examples" as
> http://localhost/examples . Isn't that correct???
>
> The folder "D:/Apache/Tomcat4.1/CTG/examples" has the same permissions as
> "D:/Apache/Tomcat4.1/webapps/examples".
>
> Any other ideas? What I need to access is the directory listing under
> "D:/Apache/Tomcat4.1/CTG/temp"...
> It is one of those things that has to be something so obvious, when (IF) I
> find it I'll probably screem! :) Until then... aaarrrrrgghh...
>
> ----- Original Message -----
> From: "Bill Barker" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, February 21, 2003 12:24 AM
> Subject: Re: 403 Forbidden - you don't have permission ... any ideas?
>
>
> At a very quick glance, it looks like it should be Ok. My first guess
would
> be tree permissions. Apache will tree-walk, so it needs at least 'rx'
> permissions to all directories upto and including
> "D:/Apache/Tomcat4.1/CTG/examples".
>
> 403 is also Apache's normal response when you have disabled directory
> listings, but I didn't see that in my quick glance (quick := I very well
may
> have overlooked something :).
>
>
> "tomcat guy" <[EMAIL PROTECTED]> wrote in message
> 001301c2d91d$b63a0590$6601a8c0@ctg">news:001301c2d91d$b63a0590$6601a8c0@ctg...
> If anyone can help, here is my problem:
>
> I can go to http://localhost:8080/examples and I get the directory
listing
> images/ jsp/ servlets/. BUT when I go to http://localhost/examples I get
> the forbidden error?!?
>
> Any ideas? The permissions are all good.
>
> I go to http://localhost/examples/jps and it works? The JSP's work
along
> with the servlets.
>
> I recently reinstalled my apache server. I cannot remember this not
> working. What did I forget!!! (besides my documentation, of course).
>
> Basically I need to setup a directory path to
> http://localhost/examples/temp or http://localhost/temp & to my
virtualHost
> http://ctg.com/examples nothing is working!!!
>
> I have attached a copy of my httpd.conf & server.xml. If anyone would
be
> able to give it a quick glance OR send a copy of your config files that
> would be great!
>
> I am using:
> Apache2.0.43
> Tomcat4.1.18
> mod_jk
> Win2k
>
>
>
> --------------------------------------------------------------------------
--
> --
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
########## Auto generated on Thu Feb 20 13:37:03 CST 2003##########
<IfModule !mod_jk.c>
LoadModule jk_module d:/apache/Apache2/modules/mod_jk-2.0.43.dll
</IfModule>
JkWorkersFile "D:/Apache/Tomcat4.1/conf/jk/workers.properties"
JkLogFile "D:/Apache/Tomcat4.1/logs/mod_jk.log"
JkLogLevel emerg
<VirtualHost www.ctg.com>
ServerName www.ctg.com
ServerAlias ctg.com
#################### www.ctg.com:/examples ####################
# Static files
Alias /examples "D:/Apache/Tomcat4.1/CTG/examples"
<Directory "D:/Apache/Tomcat4.1/CTG/examples">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
</Directory>
# Deny direct access to WEB-INF and META-INF
#
<Location "/examples/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/examples/META-INF/*">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
<Directory "D:/Apache/Tomcat4.1/CTG/examples/WEB-INF/">
AllowOverride None
deny from all
</Directory>
<Directory "D:/Apache/Tomcat4.1/CTG/examples/META-INF/">
AllowOverride None
deny from all
</Directory>
JkMount /examples/jsp/security/protected/j_security_check ajp13
JkMount /examples/snoop ajp13
JkMount /examples/servlet/* ajp13
JkMount /examples/CompressionTest ajp13
JkMount /examples/*.jsp ajp13
JkMount /examples/servletToJsp ajp13
JkMount /examples/SendMailServlet ajp13
</VirtualHost>
<VirtualHost www.qv.com>
ServerName www.qv.com
ServerAlias qv.com
#################### www.qv.com:/admin ####################
# Static files
Alias /admin "D:/Apache/Tomcat4.1/QV/..admin"
<Directory "D:/Apache/Tomcat4.1/QV/..admin">
Options Indexes FollowSymLinks
</Directory>
# Deny direct access to WEB-INF and META-INF
#
<Location "/admin/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/admin/META-INF/*">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
<Directory "D:/Apache/Tomcat4.1/QV/..admin/WEB-INF/">
AllowOverride None
deny from all
</Directory>
<Directory "D:/Apache/Tomcat4.1/QV/..admin/META-INF/">
AllowOverride None
deny from all
</Directory>
#################### www.qv.com:/apps ####################
# Static files
Alias /apps "D:/Apache/Tomcat4.1/QV/../QV/webapps/apps"
<Directory "D:/Apache/Tomcat4.1/QV/../QV/webapps/apps">
Options Indexes FollowSymLinks
</Directory>
# Deny direct access to WEB-INF and META-INF
#
<Location "/apps/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/apps/META-INF/*">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
<Directory "D:/Apache/Tomcat4.1/QV/../QV/webapps/apps/WEB-INF/">
AllowOverride None
deny from all
</Directory>
<Directory "D:/Apache/Tomcat4.1/QV/../QV/webapps/apps/META-INF/">
AllowOverride None
deny from all
</Directory>
#################### www.qv.com:/examples ####################
# Static files
Alias /examples "D:/Apache/Tomcat4.1/QV/examples"
<Directory "D:/Apache/Tomcat4.1/QV/examples">
Options Indexes FollowSymLinks
</Directory>
# Deny direct access to WEB-INF and META-INF
#
<Location "/examples/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/examples/META-INF/*">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
<Directory "D:/Apache/Tomcat4.1/QV/examples/WEB-INF/">
AllowOverride None
deny from all
</Directory>
<Directory "D:/Apache/Tomcat4.1/QV/examples/META-INF/">
AllowOverride None
deny from all
</Directory>
</VirtualHost>
<VirtualHost localhost>
ServerName localhost
#################### localhost:/admin ####################
# Static files
Alias /admin "D:/Apache/Tomcat4.1/webapps/../server/webapps/admin"
<Directory "D:/Apache/Tomcat4.1/webapps/../server/webapps/admin">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
</Directory>
# Deny direct access to WEB-INF and META-INF
#
<Location "/admin/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/admin/META-INF/*">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
<Directory "D:/Apache/Tomcat4.1/webapps/../server/webapps/admin/WEB-INF/">
AllowOverride None
deny from all
</Directory>
<Directory "D:/Apache/Tomcat4.1/webapps/../server/webapps/admin/META-INF/">
AllowOverride None
deny from all
</Directory>
JkMount /admin/j_security_check ajp13
JkMount /admin/*.do ajp13
JkMount /admin/*.jsp ajp13
#################### localhost:/webdav ####################
# Static files
Alias /webdav "D:/Apache/Tomcat4.1/webapps/webdav"
<Directory "D:/Apache/Tomcat4.1/webapps/webdav">
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm
</Directory>
# Deny direct access to WEB-INF and META-INF
#
<Location "/webdav/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/webdav/META-INF/*">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
<Directory "D:/Apache/Tomcat4.1/webapps/webdav/WEB-INF/">
AllowOverride None
deny from all
</Directory>
<Directory "D:/Apache/Tomcat4.1/webapps/webdav/META-INF/">
AllowOverride None
deny from all
</Directory>
JkMount /webdav/*.jsp ajp13
#################### localhost:/examples ####################
# Static files
Alias /examples "D:/Apache/Tomcat4.1/webapps/examples"
<Directory "D:/Apache/Tomcat4.1/webapps/examples">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
</Directory>
# Deny direct access to WEB-INF and META-INF
#
<Location "/examples/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/examples/META-INF/*">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
<Directory "D:/Apache/Tomcat4.1/webapps/examples/WEB-INF/">
AllowOverride None
deny from all
</Directory>
<Directory "D:/Apache/Tomcat4.1/webapps/examples/META-INF/">
AllowOverride None
deny from all
</Directory>
JkMount /examples/jsp/security/protected/j_security_check ajp13
JkMount /examples/snoop ajp13
JkMount /examples/servlet/* ajp13
JkMount /examples/CompressionTest ajp13
JkMount /examples/*.jsp ajp13
JkMount /examples/servletToJsp ajp13
JkMount /examples/SendMailServlet ajp13
#################### localhost:/tomcat-docs ####################
# Static files
Alias /tomcat-docs "D:/Apache/Tomcat4.1/webapps/tomcat-docs"
<Directory "D:/Apache/Tomcat4.1/webapps/tomcat-docs">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
</Directory>
# Deny direct access to WEB-INF and META-INF
#
<Location "/tomcat-docs/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/tomcat-docs/META-INF/*">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
<Directory "D:/Apache/Tomcat4.1/webapps/tomcat-docs/WEB-INF/">
AllowOverride None
deny from all
</Directory>
<Directory "D:/Apache/Tomcat4.1/webapps/tomcat-docs/META-INF/">
AllowOverride None
deny from all
</Directory>
JkMount /tomcat-docs/*.jsp ajp13
#################### localhost:/manager ####################
# Static files
Alias /manager "D:/Apache/Tomcat4.1/webapps/../server/webapps/manager"
<Directory "D:/Apache/Tomcat4.1/webapps/../server/webapps/manager">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
</Directory>
# Deny direct access to WEB-INF and META-INF
#
<Location "/manager/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/manager/META-INF/*">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
<Directory "D:/Apache/Tomcat4.1/webapps/../server/webapps/manager/WEB-INF/">
AllowOverride None
deny from all
</Directory>
<Directory "D:/Apache/Tomcat4.1/webapps/../server/webapps/manager/META-INF/">
AllowOverride None
deny from all
</Directory>
JkMount /manager/html/* ajp13
JkMount /manager/* ajp13
JkMount /manager/*.jsp ajp13
</VirtualHost>
<VirtualHost www.amw.com>
ServerName www.amw.com
ServerAlias amw.com
#################### www.amw.com:/examples ####################
# Static files
Alias /examples "D:/Apache/Tomcat4.1/AMW/examples"
<Directory "D:/Apache/Tomcat4.1/AMW/examples">
Options Indexes FollowSymLinks
</Directory>
# Deny direct access to WEB-INF and META-INF
#
<Location "/examples/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/examples/META-INF/*">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
<Directory "D:/Apache/Tomcat4.1/AMW/examples/WEB-INF/">
AllowOverride None
deny from all
</Directory>
<Directory "D:/Apache/Tomcat4.1/AMW/examples/META-INF/">
AllowOverride None
deny from all
</Directory>
</VirtualHost>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]