jazzband / django-hosts

Dynamic and static host resolving for Django. Maps hostnames to URLconfs.
http://django-hosts.rtfd.org
Other
982 stars 106 forks source link

Apache Configuration - Directing Multiple subdomains to single wsgi #147

Closed michaelwpeck closed 2 years ago

michaelwpeck commented 2 years ago

Could anyone who has set this up with Apache provide an example of their config file?

Do you create multiple linked VirtualHosts and point them both to the same wsgi.py file? If so, does that create any issues?

Thank you!

michaelwpeck commented 2 years ago

Just bumping this. Is creating a symlink to 'duplicate' the wsgi file a viable option?

michaelwpeck commented 2 years ago

Figured out the issue. Had to set ServerAlias in Apache.

ddabble commented 2 years ago

Closing this, as it seems the issue has been resolved. Please reopen it if that's not the case 😊