Hey JT,<br>What you want to do is definitely possible and fairly straightforward. Like you, I didn't want to have to configure DNS each time I added a new project wiki.  I think I know where you got hung up, because the example in the farmconfig-py file does seem to be configured in a virtual hosts situation.  However, this is not necessary at all.  Here's what I have:<br>
<br>In my apache httpd.conf file:<br><br>ScriptAlias /main               "D:/moin/moin.cgi"<br>ScriptAlias /programming   "D:/moin/moin.cgi"<br>ScriptAlias /marketing        "D:/moin/moin.cgi"<br>
<br>Yes, it's perfectly fine to point them all at the same .cgi file, there's nothing in there that would be specific to an individual project wiki that wouldn't apply to all of them.  And you can add as many as you need to.<br>
<br>Then, in the farmconfig.py file, I have:<br><br>    ("main",  r"^.*.<a href="http://mycompany.com/main.*$">mycompany.com/main.*$</a>"), <br>    ("programming",  r"^.*.<a href="http://mycompany.com/programming.*$">mycompany.com/programming.*$</a>"),<br>
    ("marketing",    r"^.*.<a href="http://mycompany.com/marketing.*$">mycompany.com/marketing.*$</a>"),<br><br>I originally had, for example,     ("main",  r"<a href="http://wiki.mycompany.com/main.*$">wiki.mycompany.com/main.*$</a>"),  but I replaced the "wiki" part with "^.*" because I have a virtual machine set up to test wiki code and upgrades, and wanted to use the exact same farmconfig.py file.  So, replacing that part allows me to use the same file in both places.<br>
<br>I hope this helps.  I also hope you will create a new wiki page that will document this better.  I too struggled a bit when I initially set mine up, and the documentation is a bit thin in this area and can use clarifying.<br>
<br>-Rick<br><br><br><br><div class="gmail_quote">On Mon, Oct 27, 2008 at 2:10 PM, JT Moree <span dir="ltr"><<a href="mailto:jtmoree@kahalacorp.com">jtmoree@kahalacorp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">







<div>


<p><font size="2">I googled for this but found no revelvant links.  I've also looked at<br>
the main wiki site but this case is not covered.<br>
<br>
Generally, the moinmoin setup seems to work best when using DNS to<br>
differentiate between wiki sites but I'd prefer to cut out the overhead<br>
of creating multiple DNS entries.<br>
<br>
Unfortunately this requires more overhead in configuring apache or some<br>
creative setups.  I've hacked together a solution that works but I'd<br>
like to hear some feedback from others.<br>
<br>
I'm using Ubuntu so some of my setup is specific to the way debian is<br>
packaging moinmoin but I find that I'm having to make copies of some of<br>
the files and re-arrange things anyway.<br>
<br>
STEPS<br>
<br>
First I installed with apt.  The version I got is<br>
python-moinmoin   1.5.8-5.1ubuntu2<br>
<br>
Next I got the single and farm sites working as virtual hosts then I<br>
started changing things.<br>
<br>
I don't want to create a new virtual host in apache for every new site<br>
for the same reason I don't want to create multiple dns entries.  The<br>
files are all the same that run the site.  Only the data and some part<br>
of the url needs to be different.<br>
<br>
I am using an apache virtual host with this configuration<br>
  <VirtualHost *><br>
        ServerName      <a href="http://wikidev-dev.kahalacorp.com" target="_blank">wikidev-dev.kahalacorp.com</a><br>
        DocumentRoot    /var/www/vhosts/<a href="http://bugs-dev.kahalacorp.com/" target="_blank">bugs-dev.kahalacorp.com/</a><br>
        AddHandler cgi-script .cgi<br>
<br>
        # Use default themes<br>
        Alias           /wiki/ /usr/share/moin/htdocs/<br>
  </VirtualHost><br>
<br>
I copied the contents of the server folder which contains the moin.cgi<br>
script from /usr/share/moin to /var/www/vhosts/<a href="http://bugs-dev.kahalacorp.com/" target="_blank">bugs-dev.kahalacorp.com/</a><br>
<br>
Next I create a symlink in that folder for the sites I want to<br>
differentiate from each other<br>
  cd /var/www/vhosts/<a href="http://bugs-dev.kahalacorp.com/" target="_blank">bugs-dev.kahalacorp.com/</a><br>
  ln -s moin.cgi a.cgi<br>
  ln -s moin.cgi b.cgi<br>
  ln -s moin.cgi c.cgi<br>
<br>
Then I tell farmconfig.py how to get to the sites<br>
    # for multiple wikis, do something like this:<br>
    ("c",  r"^<a href="http://bugs-dev.kahalacorp.com/c.cgi/*" target="_blank">bugs-dev.kahalacorp.com/c.cgi/*</a>"),<br>
    ("b",  r"^<a href="http://bugs-dev.kahalacorp.com/b.cgi/*" target="_blank">bugs-dev.kahalacorp.com/b.cgi/*</a>"),<br>
    ("a",  r"^<a href="http://bugs-dev.kahalacorp.com/a.cgi/*" target="_blank">bugs-dev.kahalacorp.com/a.cgi/*</a>"),<br>
<br>
Create the folders to hold the data and set perms<br>
  mkdir -p /var/moin/a/data<br>
  mkdir -p /var/moin/a/underlay<br>
<br>
  chmod -R ug+rw /var/moin<br>
  chown -R www-data:www-data /var/moin<br>
<br>
Lastly I configure each site's .py file and set the data_dir and<br>
data_underlay_dir.  (this is a rough approximation)<br>
  cp /etc/moin/mywiki.py /etc/moin/a.py<br>
  printf "    data_dir = '/var/moin/a/data'\n    data_underlay_dir =<br>
'/var/moin/a/underlay'\n" > /etc/moin/a.py<br>
<br>
- <br>
JT Moree<br>
System Admin<br>
<a href="http://www.kahalacorp.com" target="_blank">www.kahalacorp.com</a><br>
480.362.4800<br>
480.362.4405 direct<br>
<br>
</font>
</p>

</div>
<br>-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>_______________________________________________<br>
Moin-user mailing list<br>
<a href="mailto:Moin-user@lists.sourceforge.net">Moin-user@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/moin-user" target="_blank">https://lists.sourceforge.net/lists/listinfo/moin-user</a><br>
<br></blockquote></div><br>