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

From version 30.1
edited by Marc Guenther
on 2009/09/29 06:57
Change comment: added url to mod_WebObjects binaries
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.marc
1 +XWiki.pgr
Content
... ... @@ -48,10 +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://web.archive.org/web/20071007074308/http://www.jewelryluv.com/fashion/pageWithName/ModRewrite/]].
52 -(Note that the original page is now gone, so this link takes you to the internet archive copy of that page)
51 +Aaron Rosenzweig has a very thorough article about [[using mod//rewrite with Apache//>>http://www.jewelryluv.com/fashion/pageWithName/ModRewrite/]].
53 53  
54 -=== mod//rewite with mod//webobjects ===
53 +=== mod//rewrite with mod//webobjects ===
55 55  
56 56  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).//
57 57  
... ... @@ -124,6 +124,16 @@
124 124  
125 125  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.
126 126  
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 +
127 127  Other than these tips, it's pretty much the standard compilation and installation, and configuration.
128 128  
129 129  1. Alter the make.config file in the Adaptors directory of the Wonder repository to reflect your apache installation setup.