tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Schumacher <felix.schumac...@internetallee.de>
Subject Re: Multi-URL Access 1 Webapp
Date Fri, 01 Nov 2013 10:37:28 GMT
Am 31.10.2013 20:30, schrieb Chris Arnold:
>> 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]
> This takes me to the tomcat home page, /
If you want to be redirected to /share when the user typed /, you could 
add a rewrite rule like
RewriteRule ^/$ /share [R,L]
This will match only on "/".
>
>> or:
>> RewriteRule ^/share/(.*) https://192.168.123.3:8443/share/$1 [P]
> This one gives me a 403 access denied
What happens, if you call the tomcat url directly? Do you get a cookie? 
If so, which domain is it for? Maybe you have to add another directive 
to rewrite the cookie domain on the way back through httpd, or 
alternatively set the right domain in tomcat?

For further information you could look at 
http://tomcat.apache.org/tomcat-7.0-doc/proxy-howto.html.

Regards
  Felix
>
>> ..depending on whether you want to proxy all URL's to Tomcat, or just the /share
ones..
> Looks like i am back to the apache list
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>


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


Mime
View raw message