Re: Tomcat behind Apache and security-constraint

2011-07-22 Thread Adrián Córdoba
Ok. Thank you. -- [Adrián Córdoba] 2011/7/22 André Warnier > Adrián Córdoba wrote: > >> André: >> This is in my URL bar of Chrome or Firefox: >> http://localhost/Andromeda >> >> Ok. That, *and* the fact that you have a single VirtualHost, explains why > it works, and explains the log en

Re: Tomcat behind Apache and security-constraint

2011-07-22 Thread André Warnier
Adrián Córdoba wrote: André: This is in my URL bar of Chrome or Firefox: http://localhost/Andromeda Ok. That, *and* the fact that you have a single VirtualHost, explains why it works, and explains the log entries. But it works *only* because you have a single VirtualHost, and in Apache

Re: Tomcat behind Apache and security-constraint

2011-07-22 Thread Adrián Córdoba
André: This is in my URL bar of Chrome or Firefox: http://localhost/Andromeda Thank you. -- [Adrián Córdoba] 2011/7/22 André Warnier > Adrián Córdoba wrote: > >> André: >> 1- So how come the requests are made to the host "localhost" ? >> I think this is so, because . >> 2- Is this

Re: Tomcat behind Apache and security-constraint

2011-07-22 Thread André Warnier
Adrián Córdoba wrote: André: 1- So how come the requests are made to the host "localhost" ? I think this is so, because . 2- Is this the one and only VirtualHost in Apache ? This is the only virtual host. How do you enter a URL in the browser, to access this ? (paste an example) Best re

Re: Tomcat behind Apache and security-constraint

2011-07-22 Thread Adrián Córdoba
André: 1- So how come the requests are made to the host "localhost" ? I think this is so, because . 2- Is this the one and only VirtualHost in Apache ? This is the only virtual host. Best regards -- [Adrián Córdoba] 2011/7/22 André Warnier > Adrián Córdoba wrote: > >> Well... >> 1- I dele

Re: Tomcat behind Apache and security-constraint

2011-07-22 Thread Adrián Córdoba
Igor: mod_jk log file is configured, but nothing relevant is loged. Thank you. -- [Adrián Córdoba] 2011/7/21 Igor Cicimov > Configure a mod_jk log file and see whats going on there > > On Jul 22, 2011 10:37 AM, "Adrián Córdoba" wrote: > > Well... > 1- I delete the "Directory" section from

Re: Tomcat behind Apache and security-constraint

2011-07-22 Thread André Warnier
Adrián Córdoba wrote: Well... 1- I delete the "Directory" section from httpd.conf file. 2- I add "JkMount /Andromeda worker1" to the virtual host. 3- I add dynamic content to index.jsp page So I proved the content is served by Tomcat. But I have the same problem: I cannot view the content of pro

Re: Tomcat behind Apache and security-constraint

2011-07-21 Thread Igor Cicimov
Configure a mod_jk log file and see whats going on there On Jul 22, 2011 10:37 AM, "Adrián Córdoba" wrote: Well... 1- I delete the "Directory" section from httpd.conf file. 2- I add "JkMount /Andromeda worker1" to the virtual host. 3- I add dynamic content to index.jsp page So I proved the cont

Re: Tomcat behind Apache and security-constraint

2011-07-21 Thread Adrián Córdoba
Well... 1- I delete the "Directory" section from httpd.conf file. 2- I add "JkMount /Andromeda worker1" to the virtual host. 3- I add dynamic content to index.jsp page So I proved the content is served by Tomcat. But I have the same problem: I cannot view the content of protected section of my web

Re: Tomcat behind Apache and security-constraint

2011-07-21 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adrián, On 7/21/2011 3:28 PM, Adrián Córdoba wrote: Thank you, André. I know this "Warning", but I want to serve static content with Apache web server and dynamic content with Tomcat. You can still do that without setti

Re: Tomcat behind Apache and security-constraint

2011-07-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adrián, On 7/21/2011 4:09 PM, Adrián Córdoba wrote: > So, how to serve dynamic content with Tomcat and static one with > Apache, all in the same web application, in secure way? Can you show > me that or tell me a link to learn it? At least three ways

Re: Tomcat behind Apache and security-constraint

2011-07-21 Thread Adrián Córdoba
Thank you, Chris... I appreciate your tips. So, how to serve dynamic content with Tomcat and static one with Apache, all in the same web application, in secure way? Can you show me that or tell me a link to learn it? Now, users and passwords are in tomcat-users.xml file. When I get home, I'll try s

Re: Tomcat behind Apache and security-constraint

2011-07-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adrián, On 7/21/2011 3:28 PM, Adrián Córdoba wrote: > Thank you, André. I know this "Warning", but I want to serve static > content with Apache web server and dynamic content with Tomcat. You can still do that without setting the DocumentRoot to your

Re: Tomcat behind Apache and security-constraint

2011-07-21 Thread Adrián Córdoba
Thank you, André. I know this "Warning", but I want to serve static content with Apache web server and dynamic content with Tomcat. (The web application contains only links to other pages in the same application. It is a test application to learn.) In those conditions, with those settings, if an u

Re: Tomcat behind Apache and security-constraint

2011-07-21 Thread André Warnier
Addendum : This, which I missed earlier, is of course also a no-no, for the same reasons as explained earlier : DocumentRoot /opt/apache-tomcat-7.0.12/webapps/ see the remark in red here : http://tomcat.apache.org/connectors-doc/reference/apache.html André Warnier wrote: Adrián Córdoba wrote

Re: Tomcat behind Apache and security-constraint

2011-07-21 Thread André Warnier
Adrián Córdoba wrote: ... JkMount /Andromeda/* worker1 Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all - ... May be, I have a configuration mistake. Yes, a big one above. Wethe

Re: Tomcat behind Apache and security-constraint

2011-07-21 Thread Adrián Córdoba
Konstantin / Barry / André: Thank you for replay. 1- No important access log is showed for this issue. 2- I have ROOT webapp deployed in Tomcat. 3- I have Apache connected to Tomcat through JK Connector 1.2.32. (I want to say the web application works fine if I use an URL to Tomcat, but doesn't

Re: Tomcat behind Apache and security-constraint

2011-07-21 Thread André Warnier
Adrián Córdoba wrote: Hi! I have a very simple web application (JSP based), deployed on Tomcat webapps directory with a security constraint in order to protect an internal directory. Tomcat (7.0.12) is running behind Apache (2.2.17) web server (httpd). I

RE: Tomcat behind Apache and security-constraint

2011-07-21 Thread Propes, Barry L
From: Adrián Córdoba [mailto:adr.cord...@gmail.com] Sent: Thursday, July 21, 2011 11:25 AM To: users@tomcat.apache.org Subject: Tomcat behind Apache and security-constraint Hi! If I try to access to some file within internal directory, directly in Tomcat (*http://localhost:8080/...*), username and p

Re: Tomcat behind Apache and security-constraint

2011-07-21 Thread Konstantin Kolinko
2011/7/21 Adrián Córdoba : > *a blank page is displayed on Firefox navigator*. Do you have ROOT webapp deployed on your Tomcat? What is shown in access logs (in Tomcat one and in Apache HTTPD one)? I hope that you have them configured. Best regards, Konstantin Kolinko --

Tomcat behind Apache and security-constraint

2011-07-21 Thread Adrián Córdoba
Hi! I have a very simple web application (JSP based), deployed on Tomcat webapps directory with a security constraint in order to protect an internal directory. Tomcat (7.0.12) is running behind Apache (2.2.17) web server (httpd). If I try to access to som