mod_rewrite is what's adding the extra /share/

RewriteRule ^/(.*) https://192.168.123.3:8443/share/$1 [P]

should be something like either:

RewriteRule ^/(.*) https://192.168.123.3:8443/$1 [P]

or:

RewriteRule ^/share/(.*) https://192.168.123.3:8443/share/$1 [P]

..depending on whether you want to proxy all URL's to Tomcat, or just the 
/share ones..

Matt
________________________________________
From: Chris Arnold [carn...@electrichendrix.com]
Sent: Thursday, October 31, 2013 2:16 PM
To: Tomcat Users List
Subject: Re: Multi-URL Access 1 Webapp

Starting over since i can not seem to get this to work with tomcat or apache. 
So what i have now that IS somewhat working is:

    #This rewrites https://share.anydomain.tld to our mail server
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^share\.
    RewriteCond %{HTTPS} on
    RewriteRule ^/(.*) https://192.168.123.3:8443/share/$1 [P]

This DOES get me over to the tomcat side but gives a 404. Notice the status 
line:
HTTP Status 404 - /share/share/page/
Tomcat seems to be adding an extra /share. User need to access the web app with 
https://share.anydomain.tld which will land on apache and apache will get it to 
tomcat. The web app is accessible from http://ip:8080/share or 
https://ip:8443/share. How do i stop tomcat from adding the extra share?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
The contents of this message and any attachments to it are confidential and may 
be legally privileged.
If you have received this message in error you should delete it from your 
system immediately and advise the sender.
dunnhumby may monitor and record all emails. The views expressed in this email 
are those of the sender and not those of dunnhumby.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to