Here is what finally got it to work (with reviewing posts by Mr.
Dumpleton):

WSGIScriptAlias /moin /path/to/my/wiki/moin.wsgi
WSGIScriptAlias / /path/to/web2py/wsgihandler.py

... the rest of the virutal host directives.

The key is the order by which they are listed.  If the root directory
is listed first /moin will not get picked up by wsgi but rather web2py
will try to process and we then get an invalid request if no
controller is defined.

> I strongly suggest you do not run web2py as root.

Web2py is the root directory.  Not root permissions.
While we are on the subject what are the bare minimum permissions
needed in the web2py file structure to lock it down.  Right now the
apache group owns everything and is able to read/write all with
directory execute permissions, Others group has no privileges at all.
Is this wrong?

On Apr 6, 1:02 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
> I strongly suggest you do not run web2py as root.
>
> On Apr 5, 11:00 pm, gabe <gplax...@gmail.com> wrote:
>
>
>
> > I am trying to  host a website with web2py.
> > The main site is built with web2py and host with apache + mod_wsgi --
> > WSGIScriptAlias as root.
> > Now, I also host a wiki (moinmoin w/ wsgi) and WSGIScriptAlias as /
> > moin.
> > All the directives are in one virtual host file: the Web2py stuff per
> > Dr. Di Pierro's book, and moinmoin per their website (http://moinmo.in/
> > HelpOnInstalling/ApacheWithModWSGI).
> > Obviously, since web2py is root, no other wsgi app can be rendered --
> > eg: link to /mydomain.com/wiki --> Invalid request.
> > How do I get around this?  I researched online and tried to
> > reconfigure unsuccesfully.
> > Anyone have any suggestions and/or links to direct me to.
>
> > Thanks for your help (and not letting my weekend become unproductive).
>
> > -Gabe
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to