Last modified by Aaron Rosenzweig on 2020/09/03 22:17

From version 28.1
edited by Pascal Robert
on 2007/09/03 21:43
Change comment: There is no comment for this version
To version 31.1
edited by pgr
on 2009/11/23 16:55
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.probert
1 +XWiki.pgr
Content
... ... @@ -48,9 +48,9 @@
48 48  
49 49  Anyone who has used WebObjects has likely noticed that WebObjects URLs are long ##[[http://yoursite.com/cgi-bin/WebObjects/AppName.woa/wa/something]]##. It is a common request to make these URLs nicer for end-users who are used to just requesting ##[[http://yoursite.com]]##. Fortunately Apache provides an amazingly extensive module called "mod//rewrite" that allows you to rewrite the URL requests of your site based on a series of regular expressions and rules.//
50 50  
51 -Aaron Rosenzweig has a very thorough article about [[using mod//rewrite with Apache//>>http://www.jewelryluv.com/fashion/pageWithName/ModRewrite]].
51 +Aaron Rosenzweig has a very thorough article about [[using mod//rewrite with Apache//>>http://www.jewelryluv.com/fashion/pageWithName/ModRewrite/]].
52 52  
53 -=== mod//rewite with mod//webobjects ===
53 +=== mod//rewrite with mod//webobjects ===
54 54  
55 55  I ran into a problem with mod//rewrite when using mod//WebObjects where mod//WebObjects had be loaded first or it just wouldn't work properly (it would work fine with cgi-bin adaptor).//
56 56  
... ... @@ -92,11 +92,13 @@
92 92  
93 93  The WOA produces URLs in the format ##[[http://site.com/page/HomePage?appNum=2]]##, which turns into ##[[http://site.com/cgi-bin/WebObjects/AppName.woa/2/viewPage?pageName=HomePage]]##.
94 94  
95 +{{id value="Apache22Adapter"}}{{/id}}
96 +
95 95  == WebObjects Adaptor for Apache 2.2 ==
96 96  
97 97  === Travis Cripps ===
98 98  
99 -A number of people have expressed interest in using the WebObjects adaptor with Apache 2.2.x. I finally gotten a chance to sit down and work on it today. I'm writing to let you know that it's available in the Project Wonder CVS repository.
101 +A number of people have expressed interest in using the WebObjects adaptor with Apache 2.2.x. I finally gotten a chance to sit down and work on it today. I'm writing to let you know that it's available in the Project Wonder CVS repository. (also there are [[precompiled binaries>>http://webobjects.mdimension.com/wonder/mod_WebObjects/]] for various OS available)
100 100  
101 101  The necessary changes turned out to be mostly minor updates to change calls to outdated/deprecated functions. The biggest (and non-trivial) change was for SSL support. It's been re-written to use Apache's mod//ssl module.//
102 102  
... ... @@ -121,6 +121,16 @@
121 121  
122 122  And, of course, either change the name of the WebObjectsAlias setting from /cgi-bin/WebObjects to <foo>/WebObjects or comment out the ScriptAlias definition for the /cgi-bin/ directory.
123 123  
126 +{{info title="Note"}}
127 +
128 +The default {{ScriptAlias}} directive in the 10.5 and 10.6 {{httpd.conf}} files is:\\
129 +{code}
130 + ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) "/Library/WebServer/CGI-Executables/$1"
131 +{code}
132 +This prevents {{/cgi-bin/WebObjects}} from matching, so no change to {{WebObjectsAlias}} or {{ScriptAlias}} is necessary.
133 +
134 +{{/info}}
135 +
124 124  Other than these tips, it's pretty much the standard compilation and installation, and configuration.
125 125  
126 126  1. Alter the make.config file in the Adaptors directory of the Wonder repository to reflect your apache installation setup.