As you probably know, the web2py admin must be hosted on a secured domain. We set a client up with a basic CRM system under the domain http://crm.maindomain.com, which worked perfectly until a GeoTrust SSL Certificate was installed.
Since the purchased GeoTrust certificate was just for a single domain, there was no way to access the web2py admin unless another dedicated IP address was purchased - which the site owner did not want to pay for.
Fortunately, there is a work around.
After hours of research/tests, the identified solution was to configure the web2py application, as well as the admin, under the main domain:
- App: https://maindomain.com/crm
- Admin: https://maindomain.com/crm/admin
Essentially, any URL pattern that fell under /crm/ would be served by web2py, while all other URLS would be served by an existing Joomla application.
- Transfer the apache SSL configuration from the current crm domain (crm.mainpage.com) to the main domain (mainpage.com):
- Update the apache config
1 2 3 4
Note: Make sure to also comment out 'UserDir disabled' and all apache Rewrite lines
- Update web2py routing configuration,
1 2 3 4 5 6
- Rebuild apache config:
- Restart apache: