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

From version 61.1
edited by karesz
on 2015/10/21 07:27
Change comment: Migrated to Confluence 5.3
To version 62.1
edited by Ray Kiddy
on 2020/09/03 22:17
Change comment: add info for re-write

Summary

Details

Page properties
Parent
... ... @@ -1,0 +1,1 @@
1 +Deployment
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.karesz
1 +XWiki.kiddyr
Tags
... ... @@ -1,0 +1,1 @@
1 +deployment
Content
... ... @@ -91,6 +91,24 @@
91 91  
92 92  {{id name="Apache22Adapter"/}}
93 93  
94 +=== Ray Kiddy ===
95 +
96 +This worked for me (September 2020) and seems easier to parse. I wanted to change all of "(% class="nolink" %)http:~/~/opencalaccess.org/cgi-bin/WebObjects/app.woa(%%)/" to "http:~/~/opencalaccess.org/app/" and this worked.
97 +
98 +>RewriteEngine OnRewriteRule ^/$ /app [R]RewriteRule ^/index.html$ /app [R]RewriteRule ^/app(/(.*))?$ /cgi-bin/WebObjects/app.woa$1 [PT,L]
99 +
100 +I inserted this into my file: /etc/apache2/sites-enabled/[[opencalaccess.org>>url:http://opencalaccess.org||shape="rect"]].conf which specifies the values particular to this one domain.
101 +
102 +I added this as arguments to the app:
103 +
104 +(((
105 +(% class="Apple-tab-span" %)
106 +
107 +>-Der.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/app.woa-Der.extensions.ERXApplication.replaceApplicationPath.replace=/app
108 +
109 +And you can, of course, do this in the Properties file as well. Much thanx to Stefan Gärtner on the mailing list (Subject: Re: Apache rules and SSL, 2020/08/27)
110 +)))
111 +
94 94  === Jeff Schmitz ===
95 95  
96 96  This one stumped me for a couple days, so thought I'd add it. Was trying to add mod_rewrite functionality as described above, and things went well on my dev machine by adding the rewrite rules just to the /etc/apache2/httpd.conf file. However, on the deployment machine I also had to add them to the /etc/apache2/sites/0000_any_.conf file.