tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Barry <>
Subject RE: Multi-URL Access 1 Webapp
Date Wed, 23 Oct 2013 04:15:03 GMT
Hi Chris,

>>I didn't know you were running a 3rd-party application. Do you need
>>the application to behave differently given a particular client? If
>>not, there's nothing to do. If so, you probably need to ask the
>>Alfresco folks how to do that. I personally know nothing about
>>Alfresco, though there may be some folks on the list who do and might
>>reply here.
>I need to revisit this issue. Here is my apache vhost:
><VirtualHost *:80>
>        ServerName share.*

You probably want to be using ServerAlias here, iirc..

>        #This rewrites https://share.anydomain.tld to our alfresco server
>        RewriteCond %{HTTP_HOST} ^share\.
>        RewriteCond %{HTTPS} on

Okay, I'll take a bite at the obvious.  Your vhost is running on *:80, and your mod_rewrite
condition only triggers for https; is your httpd actually serving https on port 80?

>        RewriteRule ^/(.*)$1 [P]
>        RedirectMatch ^/$ /share/

I sort of doubt that this combination of rewrites and redirects is going to do what you want.
 If the RedirectMatch fires (I'm not positive it would), it would send a 302 to /share/, which
would then get proxied to /share/share/ on your app server.  (This is the type of setup I
typically find mod_proxy much easier to work with vs mod_redirect, but this is all OT for
this list..)

The contents of this message and any attachments to it are confidential and may be legally
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:
For additional commands, e-mail:

View raw message