[web2py] web2py, mod_proxy and redirection
Hi, I'm having problems with apache config of web2py. I'm trying to run a test server (which others can work against) and a dev server off the same apache server. Perhaps this is a little crazy, but that's how we're set up now. >From the external pov, I'm trying to configure my server such that hostname/ goes to the test server and hostname/dev goes to the dev server I have the test server and the dev server installed as two seperate web2py instances. My problem relates to the dev server and login based redirection. When I go to https://hostname/dev/admin I'm presented with a login form, but the send parameter on the login points to /admin and not /dev/admin. More specifically, https://hostname/dev/admin/default/index?send=%2Fadmin%2Fdefault%2Flogin Hence the client tries to load hostname/admin/default/login (and not the dev version) on login. Do I need to do anything specific with mod_proxy to catch this? Thanks and rgds, Seán. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: web2py, mod_proxy and redirection
Hi Niphlod, Thanks for response. On Tuesday, March 26, 2013 5:14:25 PM UTC+1, Niphlod wrote: > > well, the underlying problem with this architecture is that on / apache > rewrites internally from /whatever/whatever2 to /whatever/whatever2 on the > default instance. From this standpoint, the default behaviour of web2py is > tuned "accordingly" to what apache is doing. > > On /dev/ apache rewrites internally /dev/whatever/whatever2 to (I suspect) > /whatever/whatever2 on the dev instance. > Correct. > But, web2py doesn't know that apache has done an internal rewrite, and > apache doesn't rewrite outcoming urls accordingly . > w2p does not know this - I was using proxypassreverse to make modifications to the link on the way back. > Unless you play a lot with rewritecond or proxypassreverse, the better way > is informing web2py in advance that every /whatever/whatever2 url needs to > be outputted as /dev/whatever/whatever2 , so you get a consistent behaviour > client-side > you have to play with your routes.py on the dev instance to make it behave > "accordingly" to what apache is doing. > Hmm...this results in more differences between the dev version and the test version than I had hoped. There seem to be quite a few posts in various places on how to get w2p working with apache/mod_proxy, often via a link such as hostname/web2py - it seems that such scenarios should have the same problem. BR, Seán. > On Tuesday, March 26, 2013 4:41:37 PM UTC+1, Sean Murphy wrote: >> >> Hi, >> >> I'm having problems with apache config of web2py. >> >> I'm trying to run a test server (which others can work against) >> and a dev server off the same apache server. Perhaps this is a >> little crazy, but that's how we're set up now. >> >> From the external pov, I'm trying to configure my server such >> that >> hostname/ goes to the test server and >> hostname/dev goes to the dev server >> >> I have the test server and the dev server installed as two >> seperate web2py instances. >> >> My problem relates to the dev server and login based redirection. >> >> When I go to >> >> https://hostname/dev/admin >> >> I'm presented with a login form, but the send parameter on >> the login points to /admin and not /dev/admin. More specifically, >> >> https://hostname/dev/admin/default/index?send=%2Fadmin%2Fdefault%2Flogin >> >> Hence the client tries to load hostname/admin/default/login (and not >> the dev version) on login. >> >> Do I need to do anything specific with mod_proxy to catch this? >> >> Thanks and rgds, >> Seán. >> >> >> >> -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] OAuth login and creating new user info
Hi, I'd like to use w2p to support facebook login. When a new user signs up to the system, obviously, they should be added to the auth_user table. I'd like to create a new record for them also which can be linked to the auth_user. Another constraint is that I'd prefer not to modify the base gluon libs if possible. So, my q is this - is there a good way of running some function which can be executed each time a new user oauth's into the system - it looks like it's somehow related to get_or_create_user, but this seems to be deep in the bowels of w2p. Thoughts appreciated. BR, Seán. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] where to post problems/feedback on web2py.com?
Hi, I have an issue with one of the appliances on web2py.com. On the page: http://www.web2py.com/appliances it says that we should report any issues we find. However, it's not clear where/to whom we report them. Any pointers? BR, Seán. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: where to post problems/feedback on web2py.com?
Thanks Massimo - I think it would be good to modify http://www.web2py.com/appliances to reflect this. BR, Seán. On Monday, January 28, 2013 5:21:30 PM UTC+1, Massimo Di Pierro wrote: > > Please use the github issues: > https://github.com/mdipierro/web2py-appliances > > On Monday, 28 January 2013 08:15:08 UTC-6, Sean Murphy wrote: >> >> Hi, >> >> I have an issue with one of the appliances on web2py.com. >> >> On the page: >> >> http://www.web2py.com/appliances >> >> it says that we should report any issues we find. However, >> it's not clear where/to whom we report them. >> >> Any pointers? >> >> BR, >> Seán. >> >> -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.