This is a very interesting topic that I'll eventually try to address,
no doubt. Having web2py behind apache was a daunting task to say the
least, since I am now running more than one web2py app under apache in
the same web2py instance, I want to make sure all configuration
settings are correct.

For instance, the "ideal" post for a topic would be, as you point out
http://www.pyforum.org/forum-name/post-title, the problem is that,
even though apache can rewrite the urls, web2py still needs to know
the controllers and such to map in/out the right URLs, basically you
need to play a delicate "dance" between your vhosts.conf file and
routes.py.

The configuration that I have makes me run both my sites
(julioflores.com and pyforum.org) with a simple apache configuration
and absolutely no routes.py at all, yes, I lost ability to "admin"
web2py but I am not too concern in my "production" environment as long
as my "dev" is tuned in correctly, ideally, however, having the URLS
mapped as you mentioned would be awesome.

On Apr 10, 2:44 pm, Álvaro Justen [Turicas] <alvarojus...@gmail.com>
wrote:
> On Fri, Apr 10, 2009 at 6:25 PM, Speedbird <ju...@techfuel.net> wrote:
> > Here's the last of my "pets", I present you with pyForum, the FIRST
> > message board written exclusively in web2py, basically a forum system
> > containing many of the goodies of other (php?) message boards out
> > there.
>
> >http://www.pyforum.org/
>
> > The "official" release is at:
> >http://www.pyforum.org/pyforum/default/view_forum/2
>
> > PS - The code is OPEN SOURCE but there are still a couple of things to
> > "iron out" before I put the downloadable source code in the site (see
> > if you can fin them).
>
> > There is an area so you can add test topics and feel free to creatye
> > your accounts there, to the webpy-thonistas out there I'll be more
> > than happy to give you admin so you can explore the other 50% of the
> > code.
>
> > Cheers and long live web2py
>
> Congratulations.
> A tip: create readable, simple and efficient URLs, like:
>
> http://www.pyforum.org/name-of-forum/title-of-post
> instead 
> of:http://www.pyforum.org/(...)/view_forum/2http://www.pyforum.org/(...)/view_topic/234
>
> This is a principle that I try to follow in all my apps.
> In web2py you can do this by configuring routes.py or, if you use
> Apache, .htaccess.
>
> --
>  Álvaro Justen
>  Peta5 - Telecomunicações e Software Livre
>  21 3021-6001 / 9898-0141
>  http://www.peta5.com.br/
--~--~---------~--~----~------------~-------~--~----~
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