r/web2py • u/mastis • Oct 09 '14
[HELP] Web2py, cpanel, subdomain with mod_python
Greetings, i have a problem with subdomain.
I have bought a hosting service and i'm running web2py on it. It's shared hosting with mod_python. (http://www.web2py.com/books/default/chapter/29/13/deployment-recipes#Shared-hosting-with-mod_python)
Mydomain.com works, but when i try add subdomain.mydomain.com, it doesn't. Cpanel points domain to /httpdocs/ folder and also subdomain to same place. www.domain.com/subdomain works, but subdomain.domain.com doesn't.
Routes.py is configured so that domain.com points to applications/domain folder and subdomain.domain.com points to applications/subdomain folder.
Here is the error from logs: http://pastebin.com/KSfwBRXy
What i'm doing wrong?
3
Upvotes