I have been attempting to get web2py up and running on webfaction.
And, based on the nice writeups I have found, I think I am pretty
close.

For reference, I followed: http://mdp.cti.depaul.edu/AlterEgo/default/show/202

With my current configuration, I am able to access my web2py app:

http://myhostname.com/myapp
and the admin at
https://admin.myhostname.com/admin

What I was HOPING to do, was to be able to access my app/admin like
this:

http://myhostname.com/
and the admin at
https://admin.myhostname.com/

>From my reading I believe I am not supposed to use the routes.py
method, and I assume I am supposed to use a mod_rewrite rule.

In my virtual hosts section I have: (just trying to redirect admin
right now)

ReWriteEngine on
ReWriteRule ^/(.*)$ /admin/$1  [L]

Which, I think must be close, attempting to access https://admin.myhostname.com
has this is my rewrite log file:

--LOG FILE

127.0.0.1 - - [13/May/2009:00:06:18 --0500] [admin.myhostname.com/
sid#95f4c78][rid#968cbb8/initial] (2) init rewrite engine with
requested uri /
127.0.0.1 - - [13/May/2009:00:06:18 --0500] [admin.myhostname.com/
sid#95f4c78][rid#968cbb8/initial] (2) rewrite '/' -> '/admin/'
127.0.0.1 - - [13/May/2009:00:06:18 --0500] [admin.myhostname.com/
sid#95f4c78][rid#968cbb8/initial] (2) local path result: /admin/
127.0.0.1 - - [13/May/2009:00:06:18 --0500] [admin.myhostname.com/
sid#95f4c78][rid#968cbb8/initial] (2) prefixed with document_root to /
home/myusername/webapps/web2py/web2py/applications/admin/
127.0.0.1 - - [13/May/2009:00:06:18 --0500] [admin.myhostname.com/
sid#95f4c78][rid#968cbb8/initial] (1) go-ahead with /home/myusername/
webapps/web2py/web2py/applications/admin/ [OK]
127.0.0.1 - - [13/May/2009:00:06:18 --0500] [admin.myhostname.com/
sid#95f4c78][rid#9692bd0/subreq] (2) init rewrite engine with
requested uri /index.html
127.0.0.1 - - [13/May/2009:00:06:18 --0500] [admin.myhostname.com/
sid#95f4c78][rid#9692bd0/subreq] (2) rewrite '/index.html' -> '/admin/
index.html'
127.0.0.1 - - [13/May/2009:00:06:18 --0500] [admin.myhostname.com/
sid#95f4c78][rid#9692bd0/subreq] (2) local path result: /admin/
index.html
127.0.0.1 - - [13/May/2009:00:06:18 --0500] [admin.myhostname.com/
sid#95f4c78][rid#9692bd0/subreq] (2) prefixed with document_root to /
home/myusername/webapps/web2py/web2py/applications/admin/index.html
127.0.0.1 - - [13/May/2009:00:06:18 --0500] [admin.myhostname.com/
sid#95f4c78][rid#9692bd0/subreq] (1) go-ahead with /home/myusername/
webapps/web2py/web2py/applications/admin/index.html [OK]

--LOG FILE

So, it is not quite right.  Where have I gone astray? Is this the
right approach?

--~--~---------~--~----~------------~-------~--~----~
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