Re: [Resin-interest] Resin 4.0 with Apache 2.2

2010-09-05 Thread Andrea Sodomaco
 On the same version of Resin and Apache (Resin 4.0.7 behind Apache 
2.2), if I use


Location /abc
  SetHandler caucho-request
/Location

This works fine forn any URI starting with abc including /abc  , /abc/ 
,/abc/xx.jsp , /abc/d/e/f.jsp


The only difference I can see is that I don't use /ResinConfigServer/ 
but /CauchoHost/ in my httpd.conf.


You can also evaluate the use of /LocationMatch/ in place of /Location/

Andrea


On 4/09/10 9:17 PM, Matthew Serrano wrote:

  have been running Resin 4.0.7 behind Apache 2.2. I recently deployed a war file (abc.war) and Apache gives me a 404: 
The requested URL /abc was not found on this server. My ROOT application mostly works fine except for my 
WordPress blog which has the same issue as this abc.war. I explicitly configured httpd.conf to add a mapping for my 
blog (/blog/*) and my war (/abc/*) but Apache will only server subfolders explicitly mapped in 
the httpd.conf file (e.g. the * does not seem to indicate serve all file and subfolders). I have worked around this by 
configuring several Location tags in httpd.conf as demonstrated below.

Is this an issue with my configuration or Resin? I am running on Debian 5 
x86_64, Java 6, Resin 4.0.7.

  httpd.conf
#
# mod_caucho Resin Configuration
#

LoadModule caucho_module /usr/lib/apache2/modules/mod_caucho.so

ResinConfigServer localhost 6800
CauchoConfigCacheDirectory /tmp
#CauchoStatus yes

Location /abc/*
   SetHandler caucho-request
/Location
Location /abc/*/*
   SetHandler caucho-request
/Location
Location /abc/*/*/*
   SetHandler caucho-request
/Location
Location /abc/*/*/*/*
   SetHandler caucho-request
/Location

Location /blog/*
   SetHandler caucho-request
/Location
Location /blog/p/*/*/*/*
   SetHandler caucho-request
/Location
Location /blog/p/*/*/*
   SetHandler caucho-request
/Location
Location /blog/p/*/*
   SetHandler caucho-request
/Location
Location /blog/p/*
   SetHandler caucho-request
/Location
Location /blog/feed/*
   SetHandler caucho-request
/Location
Location /blog/comments/feed/*
   SetHandler caucho-request
/Location



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Resin 4.0 with Apache 2.2

2010-09-05 Thread Matthew Serrano
Thanks for saving my sanity. Removing the /* seems to have done the trick.

matt

On 5 Sep 2010, at 02:47, Andrea Sodomaco wrote:

 On the same version of Resin and Apache (Resin 4.0.7 behind Apache 2.2), if I 
 use
 
 Location /abc
   SetHandler caucho-request
 /Location
 This works fine forn any URI starting with abc including /abc  , /abc/ 
 ,/abc/xx.jsp , /abc/d/e/f.jsp
 
 The only difference I can see is that I don't use ResinConfigServer but 
 CauchoHost in my httpd.conf.
 
 You can also evaluate the use of LocationMatch in place of Location
 
 Andrea
 
 
 On 4/09/10 9:17 PM, Matthew Serrano wrote:
 
  have been running Resin 4.0.7 behind Apache 2.2. I recently deployed a war 
 file (abc.war) and Apache gives me a 404: The requested URL /abc was not 
 found on this server. My ROOT application mostly works fine except for my 
 WordPress blog which has the same issue as this abc.war. I explicitly 
 configured httpd.conf to add a mapping for my blog (/blog/*) and my war 
 (/abc/*) but Apache will only server subfolders explicitly mapped in the 
 httpd.conf file (e.g. the * does not seem to indicate serve all file and 
 subfolders). I have worked around this by configuring several Location 
 tags in httpd.conf as demonstrated below.
 
 Is this an issue with my configuration or Resin? I am running on Debian 5 
 x86_64, Java 6, Resin 4.0.7.
 
  httpd.conf 
 #
 # mod_caucho Resin Configuration
 #
 
 LoadModule caucho_module /usr/lib/apache2/modules/mod_caucho.so
 
 ResinConfigServer localhost 6800
 CauchoConfigCacheDirectory /tmp
 #CauchoStatus yes
 
 Location /abc/*
   SetHandler caucho-request
 /Location
 Location /abc/*/*
   SetHandler caucho-request
 /Location
 Location /abc/*/*/*
   SetHandler caucho-request
 /Location
 Location /abc/*/*/*/*
   SetHandler caucho-request
 /Location
 
 Location /blog/*
   SetHandler caucho-request
 /Location
 Location /blog/p/*/*/*/*
   SetHandler caucho-request
 /Location
 Location /blog/p/*/*/*
   SetHandler caucho-request
 /Location
 Location /blog/p/*/*
   SetHandler caucho-request
 /Location
 Location /blog/p/*
   SetHandler caucho-request
 /Location
 Location /blog/feed/*
   SetHandler caucho-request
 /Location
 Location /blog/comments/feed/*
   SetHandler caucho-request
 /Location
 
 
 
 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest
 
 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest

___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest