On 10/26/05, <b class="gmail_sendername"><a href="mailto:pmwiki-users-request@pmichaud.com">pmwiki-users-request@pmichaud.com</a></b> &lt;<a href="mailto:pmwiki-users-request@pmichaud.com">pmwiki-users-request@pmichaud.com
</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Message: 2<br>Date: Tue, 25 Oct 2005 22:19:16 +0200
<br>From: Helge Larsen &lt;<a href="mailto:hal@post4.tele.dk">hal@post4.tele.dk</a>&gt;<br>Subject: [pmwiki-users] Problems and comment to WikiFarm setup<br>To: <a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com
</a><br>Message-ID: &lt;<a href="mailto:6d4tl1pq06i5ab22g2qvie7aj15ctqtb1m@4ax.com">6d4tl1pq06i5ab22g2qvie7aj15ctqtb1m@4ax.com</a>&gt;<br>Content-Type: text/plain; charset=us-ascii<br><br>Hello<br><br>I'm trying to setup a wikifarm with one public wiki and several
<br>protected wiki fields.<br>Running PmWiki Version 2.0.12.<br></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>3.<br>Running with CleanUrls enabled I find it troublesome to setup
<br>$ScriptUrl in every field, so I have the following lines in my<br>farmconfig that seems to solve this:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$pos = strrpos($ScriptUrl, &quot;/&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if ($pos === false) { // note: three equal signs<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} else {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$ScriptUrl
= substr($ScriptUrl, 0, $pos);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>
</blockquote><div><br>
You should look at the &quot;OpenUrls&quot; recipe. I have what I'd like to call
a wiki plantation: multiple web sites each running a wikifarm. They all
use the same installation, so upgrading is as simple as untarring the
new release and &quot;ln -sf.&quot; So, I have different URLs. I also run Clean
Urls. The recipe allows me to pick which sites run Clean Urls, and
whether to mandate HTTPS or not. <br>
<br>
</div></div>-- <br>Ben Wilson<br>&quot; Mundus vult decipi, ergo decipiatur&quot;