Re: mod_proxy as mod_WebObjects alternative [Was: Re: Yosemite]
Re: mod_proxy as mod_WebObjects alternative [Was: Re: Yosemite]
- Subject: Re: mod_proxy as mod_WebObjects alternative [Was: Re: Yosemite]
- From: Stephen Quirk <email@hidden>
- Date: Fri, 24 Oct 2014 19:04:24 -0400
Since a lot of people are suffering though this...
You might find this useful if you hand manage your WOAdaptor.xml. It's an xsl script to read the xml and spit out a valid httpd.proxy.conf file
To use it:
copy & paste the xsl below to woadaptor2proxypass.xslt
run "xsltproc woadaptor2proxypass.xslt WOAdaptor.xml > httpd.proxy.conf
inspect httpd.proxy.conf & edit as you need
merge or move to somewhere in /etc/apache2 as fits your needs
Feel free to sink the bones of mod_WebObjects, etc.
Steve
<!-- xsltproc woadaptor2proxypass.xslt path/to/WOAdaptor.xml -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template match="adaptor">
<xml:text>
ProxyRequests off
ProxyPreserveHost On
ProxyTimeout 7200
</xml:text>
<xsl:for-each select="application">
<xsl:variable name="appname" select="@name"/>
<xsl:for-each select="instance">
<xsl:value-of select="concat('<','Location /WebObjects/',$appname,'.woa','> 
')"/>
<xsl:text> ProxyPass http://</xsl:text><xsl:value-of select="@host"/><xsl:text>:</xsl:text><xsl:value-of select="@port"/><xsl:text>/WebObjects/</xsl:text><xsl:value-of select="$appname"/><xsl:text>.woa retry=0</xsl:text>
<xsl:if test="@recvTimeout > 0">
<xsl:text> timeout=</xsl:text><xsl:value-of select="@recvTimeout"/>
</xsl:if>
<xsl:if test="@cnctTimeout > 0">
<xsl:text> connectiontimeout=</xsl:text><xsl:value-of select="@cnctTimeout"/>
</xsl:if>
<xsl:text>
</xsl:text>
<xsl:text> RequestHeader add x-webobjects-adaptor-version "Apache Proxy" 
</xsl:text>
<xsl:text></Location> 
</xsl:text>
</xsl:for-each>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
On Oct 24, 2014, at 3:24 PM, Fredrik Lindgren <email@hidden> wrote:
> So is there any instructions on how to set upp this in development mode, so that these URLs work:
>
> http://localhost/cgi-bin/WebObjects/app.woa/-56665
>
> or of course something similar!
>
> Regards
> /Fredrik
>
>> 13 aug 2014 kl. 05:04 skrev Chuck Hill <email@hidden>:
>>
>> You don’t need wotaskd (at the cost of instant reconfiguration) and you are not dependant on having mod_webobjects compiled for the Apache version and platform that you are using.
>>
>> Chuck
>>
>>
>>
>> On 2014-08-12, 7:05 PM, "Michael Kondratov" wrote:
>>
>> What makes mod proxy better than apache adapter?
>>
>> Michael
>>
>> Sent from my iPad
>>
>> On Aug 12, 2014, at 19:22, Paul Hoadley <email@hidden> wrote:
>>
>>> Hi Larry,
>>>
>>> On 13 Aug 2014, at 7:12 am, Larry Mills-Gahl <email@hidden> wrote:
>>>
>>>> I’m new to the mod_proxy config also (but I’m digging it… thanks Chuck)
>>>>
>>>> One piece that I needed to do in addition to setting the proxy config from the Migrations tab was to add this line to the apache config:
>>>>
>>>> RequestHeader append x-webobjects-adaptor-version “mod_proxy"
>>>
>>> Thanks for the additional info. I lost momentum looking into this last week (I was only curious and have no burning need to get it going). Would you have a few minutes to throw together a list of the steps you took?
>>>
>>>
>>> --
>>> Paul Hoadley
>>> http://logicsquad.net/
>>>
>>>
>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list (email@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden