# Apache 2.0, Mongrel and ActionWebService

**URL:** <https://www.ruby-forum.com/t/apache-2-0-mongrel-and-actionwebservice/67011>\
**Category:** Rails\
**Created:** [August 30, 2006, 10:03pm UTC](https://www.ruby-forum.com/t/apache-2-0-mongrel-and-actionwebservice/67011 "2006-08-30T22:03:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulbutcher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Post date:** [August 30, 2006, 10:03pm UTC](https://www.ruby-forum.com/t/apache-2-0-mongrel-and-actionwebservice/67011/1 "2006-08-30T22:03:14Z")

</div>

Our current deployment is under Apache 1.3 via FastCGI, but we’re  
thinking of moving to the current deployment of choice - Apache 2.0,  
mod\_proxy\_balancer and a Mongrel cluster. Unfortunately we have hit a  
problem with ActionWebService. Are we missing something?

The problem is that the WSDL file automatically generated by  
ActionWebService points at the cluster, rather than the Apache 2.0  
proxy. Instead of:

\<soap:address location=“[http://mydomain.com/my\_service/api](http://mydomain.com/my_service/api)” /\>

it contains:

\<soap:address location=“[http://localhost:3002/my\_service/api](http://localhost:3002/my_service/api)” /\>

As far as we can tell, instead of using request.host (which examines  
HTTP\_X\_FORWARDED\_HOST), ActiveWebService uses HTTP\_HOST directly. Are we  
missing something? Has anyone else used ActiveWebService in an Apache  
2.0/Mongrel deployment?

Thanks in advance,

paul.butcher-\>msgCount++

---

<div class="post-metadata">

**Author:** ![paulbutcher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Post date:** [August 31, 2006, 1:22am UTC](https://www.ruby-forum.com/t/apache-2-0-mongrel-and-actionwebservice/67011/2 "2006-08-31T01:22:35Z")

</div>

On 8/30/06, Paul B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> \<soap:address location=“[http://mydomain.com/my\_service/api](http://mydomain.com/my_service/api)” /\>
> 
> it contains:
> 
> \<soap:address location=“[http://localhost:3002/my\_service/api](http://localhost:3002/my_service/api)” /\>
> 
> As far as we can tell, instead of using request.host (which examines  
> HTTP\_X\_FORWARDED\_HOST), ActiveWebService uses HTTP\_HOST directly. Are we  
> missing something? Has anyone else used ActiveWebService in an Apache  
> 2.0/Mongrel deployment?

This is a bug in AWS. Please submit a ticket.

## – Kent

> **[DATANOISE.COM](https://www.datanoise.com/)**
>
> DATANOISE.COM - Contact us for any business inquiries

---

<div class="post-metadata">

**Author:** ![paulbutcher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Post date:** [August 31, 2006, 11:00am UTC](https://www.ruby-forum.com/t/apache-2-0-mongrel-and-actionwebservice/67011/3 "2006-08-31T11:00:03Z")

</div>

Kent S. wrote:

> This is a bug in AWS. Please submit a ticket.

Done [http://dev.rubyonrails.org/ticket/5996](http://dev.rubyonrails.org/ticket/5996)

I’m working on a patch and will update the ticket when I’ve done so.

Given the popularity of the Apache 2.0, mod\_proxy\_balancer and Mongrel  
deployment, I’m kinda amazed that we seem to be the first people to hit  
this problem. Ah well…

paul.butcher-\>msgCount++

---

<div class="post-metadata">

**Author:** ![paulbutcher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Post date:** [August 31, 2006, 2:17pm UTC](https://www.ruby-forum.com/t/apache-2-0-mongrel-and-actionwebservice/67011/4 "2006-08-31T14:17:41Z")

</div>

Isak H. wrote:

> Completely off topic, but I think you mean Apache _2.2_,  
> mod\_proxy\_balancer and Mongrel. AFAIK, mod\_proxy\_balancer won’t work  
> with 2.0.

You are, of course, entirely correct. Thanks,

paul.butcher-\>msgCount++

---

<div class="post-metadata">

**Author:** ![paulbutcher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Post date:** [August 31, 2006, 2:09pm UTC](https://www.ruby-forum.com/t/apache-2-0-mongrel-and-actionwebservice/67011/5 "2006-08-31T14:09:44Z")

</div>

On 8/31/06, Paul B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Given the popularity of the Apache 2.0, mod\_proxy\_balancer and Mongrel  
> deployment

Completely off topic, but I think you mean Apache _2.2_,  
mod\_proxy\_balancer and Mongrel. AFAIK, mod\_proxy\_balancer won’t work  
with 2.0.

Isak

---

<div class="post-metadata">

**Author:** ![paulbutcher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Post date:** [August 31, 2006, 2:37pm UTC](https://www.ruby-forum.com/t/apache-2-0-mongrel-and-actionwebservice/67011/6 "2006-08-31T14:37:18Z")

</div>

Isak H. wrote:

> On 8/31/06, Paul B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Given the popularity of the Apache 2.0, mod\_proxy\_balancer and Mongrel  
> > deployment
> 
> Completely off topic, but I think you mean Apache _2.2_,  
> mod\_proxy\_balancer and Mongrel. AFAIK, mod\_proxy\_balancer won’t work  
> with 2.0.

Staying off-topic, I think the reason is the _lack_ of popularity for  
ActionWebService. No insult intended. It’s not quite deprecated, but  
it has been discouraged. Bleeding Edgers are likely to be the ones on  
the hot new deployment setup, and Bleeding Edgers are likely to be the  
ones ditching AWS for simply\_restful and/or ActiveResource, I guess.

Alan

---

<div class="post-metadata">

**Author:** ![paulbutcher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Post date:** [August 31, 2006, 2:18pm UTC](https://www.ruby-forum.com/t/apache-2-0-mongrel-and-actionwebservice/67011/7 "2006-08-31T14:18:05Z")

</div>

Paul B. wrote:

> Kent S. wrote:
> 
> > This is a bug in AWS. Please submit a ticket.
> 
> Done [http://dev.rubyonrails.org/ticket/5996](http://dev.rubyonrails.org/ticket/5996)
> 
> I’m working on a patch and will update the ticket when I’ve done so.

Patch attached.

paul.butcher-\>msgCount++
