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('&lt;','Location 
/WebObjects/',$appname,'.woa','&gt; &#x0a;')"/>
            <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 &gt; 0">
                   <xsl:text> timeout=</xsl:text><xsl:value-of 
select="@recvTimeout"/>
                </xsl:if>
            <xsl:if test="@cnctTimeout &gt; 0">
                   <xsl:text> connectiontimeout=</xsl:text><xsl:value-of 
select="@cnctTimeout"/>
                </xsl:if>
            <xsl:text>&#x0a;</xsl:text>
                 <xsl:text>  RequestHeader add x-webobjects-adaptor-version 
"Apache Proxy" &#x0a;</xsl:text>
            <xsl:text>&lt;/Location&gt; &#x0a;</xsl:text>
        </xsl:for-each>    
    </xsl:for-each>
</xsl:template>

</xsl:stylesheet>


On Oct 24, 2014, at 3:24 PM, Fredrik Lindgren <fre...@timeoff.se> 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 <ch...@global-village.net>:
>> 
>> 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 <pa...@logicsquad.net> wrote:
>> 
>>> Hi Larry,
>>> 
>>> On 13 Aug 2014, at 7:12 am, Larry Mills-Gahl <elem...@gmail.com> 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      (Webobjects-dev@lists.apple.com)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/michael%40aspireauctions.com
>>> 
>>> This email sent to mich...@aspireauctions.com
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/frelin%40timeoff.se
>> 
>> This email sent to fre...@timeoff.se
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/squirk%40mac.com
> 
> This email sent to squ...@mac.com


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to