I got a config setup that works. I was never able to get the migrations tab to 
work, but I did take some hints from the information it presented.

I am running Apple’s Server app on Yosemite. I use Server to generate the site 
file. I have these directives  in the generated site file:

        Include /Library/WebObjects/Adaptors/Apache2.2/apache.conf #I suppose 
apache.conf could go anywhere under any name
        Redirect 302 /index.html 
http://www.foobar.com/cgi-bin/WebObjects/foobar.woa 
<http://www.foobar.com/cgi-bin/WebObjects/foobar.woa>

apache.con, included above, is where the mod_proxy action is as follows:

LoadModule proxy_module libexec/apache2/mod_proxy.so
LoadModule proxy_balancer_module libexec/apache2/mod_proxy_balancer.so

ProxyRequests On
ProxyMaxForwards 10000
ProxyVia Full
<Proxy balancer://foobar.woa>
        BalancerMember http://www.foobar.com:2001/cgi-bin/WebObjects/foobar.woa 
route=foobar_www.foobar.com_2001_1
</Proxy>
ProxyPass /cgi-bin/WebObjects/foobar.woa balancer://foobar.woa 
stickysession=woclusteragentid nofailover=On
RequestHeader append x-webobjects-adaptor-version “mod_proxy"

This all works (allowing for any mistakes I made substituting foobar for my 
domain. caveat emptor). However, if I add another instance of the app on the 
same server and add the corresponding 2nd BalancerMember, ending in 
www.foobar.com_2002_2, this config fails. I get to my home screen ok, but when 
I initiate an action served by WebObjects I get a session timeout error. I 
haven’t figured that out yet.

At least I’m up and running again.

Tom



> On Oct 24, 2014, at 7:04 PM, Stephen Quirk <squ...@mac.com> wrote:
> 
> 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 
> <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 
> <mailto: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 
>> <https://lists.apple.com/mailman/options/webobjects-dev/squirk%40mac.com>
>> 
>> This email sent to squ...@mac.com <mailto:squ...@mac.com>
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com 
> <mailto:Webobjects-dev@lists.apple.com>)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/drwo%40woteki.com 
> <https://lists.apple.com/mailman/options/webobjects-dev/drwo%40woteki.com>
> 
> This email sent to d...@woteki.com <mailto:d...@woteki.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