A robust starter web application to ease Java webapp development.

Home | Tutorials | Demos | Issues

AppFuse and mod_proxy_ajp

View: New views
3 Messages — Rating Filter:   Alert me  

AppFuse and mod_proxy_ajp

by Robert Dare-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

I am trying to serve an AppFuse project running in Tomcat 6 from behind an Apache httpd webserver using mod_proxy_ajp.

In my conf.d/proxy_ajp.conf file I have the following:

ProxyPass /mycontext ajp://localhost:8009/mycontext
ProxyPassReverse /mycontext ajp://localhost:8009/mycontext

Since the AppFuse dispatcher servlet uses *.html to map the resources, it seems that Apache mod_proxy_ajp thinks these are static files and serves them up as source.

Can anyone point me to some documentation on how to get mod_proxy_ajp to ignore .html files for this context? 

Regards,

Rob

Re: AppFuse and mod_proxy_ajp

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It's probably easier to change your project to use a different extension. You can always go extensionless with the UrlRewriteFilter.

http://raibledesigns.com/rd/entry/extensionless_urls_in_java_web

Matt

On Wed, Jul 1, 2009 at 6:06 PM, Robert Dare <robert.dare@...> wrote:
Hi All,

I am trying to serve an AppFuse project running in Tomcat 6 from behind an Apache httpd webserver using mod_proxy_ajp.

In my conf.d/proxy_ajp.conf file I have the following:

ProxyPass /mycontext ajp://localhost:8009/mycontext
ProxyPassReverse /mycontext ajp://localhost:8009/mycontext

Since the AppFuse dispatcher servlet uses *.html to map the resources, it seems that Apache mod_proxy_ajp thinks these are static files and serves them up as source.

Can anyone point me to some documentation on how to get mod_proxy_ajp to ignore .html files for this context? 

Regards,

Rob


Re: AppFuse and mod_proxy_ajp

by Robert Dare-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Matt,

I had seen your rewrite filter write up before, but I think I will
wait for Spring 3.0 for extensionless URIs.

With regards to mod_proxy, you're right, simple way is jut change from
.html to .do or something.

Cheers,

Rob


On 7/2/09, Matt Raible <matt@...> wrote:

> It's probably easier to change your project to use a different extension.
> You can always go extensionless with the UrlRewriteFilter.
>
> http://raibledesigns.com/rd/entry/extensionless_urls_in_java_web
>
> Matt
>
> On Wed, Jul 1, 2009 at 6:06 PM, Robert Dare <robert.dare@...> wrote:
>
>> Hi All,
>>
>> I am trying to serve an AppFuse project running in Tomcat 6 from behind an
>> Apache httpd webserver using mod_proxy_ajp.
>>
>> In my conf.d/proxy_ajp.conf file I have the following:
>>
>> ProxyPass /mycontext ajp://localhost:8009/mycontext
>> ProxyPassReverse /mycontext ajp://localhost:8009/mycontext
>>
>> Since the AppFuse dispatcher servlet uses *.html to map the resources, it
>> seems that Apache mod_proxy_ajp thinks these are static files and serves
>> them up as source.
>>
>> Can anyone point me to some documentation on how to get mod_proxy_ajp to
>> ignore .html files for this context?
>>
>> Regards,
>>
>> Rob
>

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