Changes for page Configuring Apache for WebObjects
Last modified by Yana Oksner on 2026/01/08 11:38
From version 59.1
edited by Theodore Petrosky
on 2013/07/10 10:20
on 2013/07/10 10:20
Change comment:
There is no comment for this version
To version 57.1
edited by Pascal Robert
on 2012/02/11 08:44
on 2012/02/11 08:44
Change comment:
Migrated to Confluence 4.0
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. tedpet1 +XWiki.probert - Content
-
... ... @@ -13,6 +13,7 @@ 13 13 An example mod_expires configuration might look like: 14 14 15 15 {{code 0="xml"}} 16 + 16 16 <IfModule mod_expires.c> 17 17 ExpiresActive On 18 18 ExpiresDefault A60 ... ... @@ -28,6 +28,7 @@ 28 28 You will also need the corresponding type-extension mappings: 29 29 30 30 {{code 0="xml"}} 32 + 31 31 <IfModule mod_mime.c> 32 32 AddType image/bmp bmp 33 33 AddType image/gif gif ... ... @@ -46,7 +46,7 @@ 46 46 47 47 Anyone who has used WebObjects has likely noticed that WebObjects URLs are long [[http:~~/~~/yoursite.com/cgi-bin/WebObjects/AppName.woa/wa/something>>url:http://yoursite.com/cgi-bin/WebObjects/AppName.woa/wa/something||shape="rect"]]{{code language="none"}}{{/code}}. It is a common request to make these URLs nicer for end-users who are used to just requesting [[http:~~/~~/yoursite.com>>url:http://yoursite.com||shape="rect"]]{{code language="none"}}{{/code}}. 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. 48 48 49 -Aaron Rosenzweig has a very thorough article about [[using mod_rewrite with Apache>>url:http://w eb.archive.org/web/20051216205025/http://www.jewelryluv.com/fashion/pageWithName/ModRewrite/||shape="rect"]][[url:http://www.jewelryluv.com/fashion/pageWithName/ModRewrite/||shape="rect"]].51 +Aaron Rosenzweig has a very thorough article about [[using mod_rewrite with Apache>>url:http://www.jewelryluv.com/fashion/pageWithName/ModRewrite/||shape="rect"]]. 50 50 51 51 === mod_rewrite with mod_webobjects === 52 52 ... ... @@ -55,6 +55,7 @@ 55 55 So in http.conf, search for mod_rewrite and change it to: 56 56 57 57 {{noformat}} 60 + 58 58 LoadModule WebObjects_module /System/Library/WebObjects/Adaptors/Apache/mod_WebObjects.so 59 59 LoadModule rewrite_module libexec/httpd/mod_rewrite.so 60 60 ... ... @@ -63,6 +63,7 @@ 63 63 , find again: 64 64 65 65 {{noformat}} 69 + 66 66 AddModule mod_WebObjects.c 67 67 AddModule mod_rewrite.c 68 68 ... ... @@ -75,6 +75,7 @@ 75 75 Here's an example mod_rewrite we use on one of our apps: 76 76 77 77 {{code 0="xml"}} 82 + 78 78 <IfModule mod_rewrite.c> 79 79 RewriteEngine On 80 80 RewriteRule ^/$ /page/HomePage [R] ... ... @@ -110,6 +110,7 @@ 110 110 The new default configuration is: 111 111 112 112 {{code 0="xml"}} 118 + 113 113 <Directory /> 114 114 Options FollowSymLinks 115 115 AllowOverride None ... ... @@ -124,9 +124,10 @@ 124 124 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. 125 125 126 126 {{info title="Note"}} 127 -The default {{code language="none"}}ScriptAlias{{/code}} directive in the 10.5 and 10.6 {{code language="none"}}httpd.conf{{/code}} files is: 133 +The default {{code language="none"}}ScriptAlias{{/code}} directive in the 10.5 and 10.6 {{code language="none"}}httpd.conf{{/code}} files is:\\ 128 128 129 129 {{noformat}} 136 + 130 130 ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) "/Library/WebServer/CGI-Executables/$1" 131 131 132 132 {{/noformat}} ... ... @@ -150,16 +150,15 @@ 150 150 151 151 Enjoy your shiny new WO adaptor. 152 152 153 -* ((( 154 -Note: if you are getting the error 160 +* Note: if you are getting the error 155 155 156 156 {{noformat}} 163 + 157 157 libtool: compile: unable to infer tagged configuration 158 158 libtool: compile: specify a tag with `--tag' 159 159 apxs:Error: Command failed with rc=65536 160 160 161 161 {{/noformat}} 162 -))) 163 163 164 164 Add to the end of your make.config the following: 165 165 {{code language="none"}}CC = gcc{{/code}}