Here is information on how we have Apache configured.  Apache is the
virtual host and it redirects to the (war) app deployed in Tomcat.  Note it
has the app name in the ProxyPass/ProxyPassReverse URL.

Regarding your question on how we deploy the app, I use Tomcat's Manager
app to upload a war file.  Note this same Tomcat instance has several other
war apps as well.

Note at first we thought this was working as it does redirect to the right
app and the correct login page, the problem is when they click the Login
button that's when the 408 error occurs.  The 408 error does not occur if
we launch the app via http://localhost:8080/myapp/.  The error only occurs
when users use sub1.mydomain.com which is the only URL that will have
access to.

What are we doing wrong?  We are probably missing something simple...just
don't see it.  Also I'd be happy to upgrade Tomcat to a later version if
that would help.

##Apache: Just a ReverseProxy to the Tomcat app:
<VirtualHost *:80>
        ServerName sub1.mydomain.com
        ServerAlias sub1.mydomain.com

## ReverseProxy's
        ProxyRequests Off
        ProxyPreserveHost Off # Have tried both on and off
<Proxy *>
        Order deny,allow
        Allow from all
</Proxy>

        ProxyPass /                 http://localhost:8080/myapp/
        ProxyPassReverse /     http://localhost:8080/myapp/


On Wed, Jul 8, 2015 at 7:53 AM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> David,
>
> On 7/7/15 11:14 AM, David Hoffer wrote:
> > Here is the relevant parts of the web.xml.  I didn't do the Apache
> > configuration so I'll have to get more details there but I was told
> > that is no different than how we configure virtual hosts for other
> > apps that don't use Tomcat's authentication.  E.g. it seems Tomcat
> > is requiring to have the app's name in the URL...not a subdomain.
>
> Well, /of course/ Tomcat requires the app's name in the URL. That's
> how Tomcat figures out which application should take the request.
>
> Where is your application deployed? What WAR file (or exploded-WAR
> directory)? Any other details that might help explain what's going on?
>
> As André said, none of us has a crystal ball (well... one of us does,
> but he's been MIA for quite a long time).
>
> FORM authentication works in Tomcat, whether through an httpd-based
> proxy or not. Most of us use it /all the time/.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBCAAGBQJVnStSAAoJEBzwKT+lPKRYrjUP/2DO0eK+Ee1r2SqqVBRZjvtK
> KsDWGY1lq/n2OELZYCRYCoiVCSwYJZ5qbe9x34GFSSLR9Ictrpo5zS4f3UhxdK5N
> INeWzvQy6WlDcu962bGopNqLedrpFJBGPbrbY3mP13bm2KByjbbrD7z8LqQrnlUM
> GyHLPpgWfwbaPdG+2sVG4Xi0oa/uqCGGW7XkcUCq+0IXCDKnxHmwgxERrb1T4b3y
> Yq0uG644pZ3ZhDQaWhtC9ENXz6+Nw0WW82k6OfyyR7bs7m/axqfDa8G45s33hJXV
> KK0GPR2Ke19xvILJ9xM6K4Bvss4y61O7TGhrfpUujniKDrmArDoJ7gALHDyCpguE
> CJ2P743d4KL2bDt3Kpvc3Pct615dtIECn7+0fiJP/wZP9r7PhV0jm0srxmVF/29W
> rgfJhNEMGsAmHKHjY7f7LIbJPO9t2sY7khwR5TmL8rjvD1ryAadkrxTTNngeV8/L
> +h063CkbVX4+jQ9S5/QLdcD/CtL8iYE/p29FS60o+b5JwiBeOGjxnuJl0ahu9EIa
> 4Q3tuMn8jtFc8mxvvSIL2I2ErRx+4mQECJwZsCnMPmD+k+dgSuGndt7avG8Jrfk/
> XqS36lNth9O916Xkgp9bKPpxOD5o5EXfXLFInr+nuew7V3Tbm0zjfsDiLx4YuQgM
> NkOj5Rfv9gikgn9nq3Au
> =7b2b
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to