How to create subdomain in web2py app.

33 views
Skip to first unread message

Jawad K.

unread,
Oct 16, 2014, 6:15:41 AM10/16/14
to web...@googlegroups.com
Hi,

I am a new developer and I have data management app using web2py. I want to know how to create subdomain functionality that perform the following operations.
  • Each account should be associated with a sub-domain entered by user on account sign-up
  • On new account signup user should be redirected to his/her own personalized url (e.g. mydomain.abc.com)
  • If someone directly accesses mydomain.abc.com, authorized user under this specific sub-domain should be allowed to sign-in and use the application
  • If some tried to access a non-existing sub-domain (like non_existing_subdoamin.spereal.com) he/she should be redirected to main application url (e.g. www.abc.com)

Thanks.

Jawad K.


Reply all
Reply to author
Forward
0 new messages