Score:0

Pointing incoming HTTP from domain to django path?

in flag

I am hosting a website via Apache2 on Ubuntu 20, located in var/www/html which is the default that the user is sent to when accessing mysite.com. However, I am also hosting a Django webapp on mysite.com/djangoapp.

I have two domains associated with my server and that is mysite.com and myapp.com. Is it possible to tell Apache2 to route any incoming requests from myapp.com to mysite.com/djangoapp and any requests from mysite.com just to mysite.com?

The Django is attached via WSGI in the site config.

djdomi avatar
za flag
basically yes, but djabgo needs to be updated maybe since its base path will change. but since you're hiding your configuration its a bad question in the moment... Questions seeking installation, configuration or diagnostic help must include the desired end state, the specific problem or error, sufficient information about the configuration and environment to reproduce it, and attempted solutions. Questions without a clear problem statement are not useful to other readers and are unlikely to get good answers.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.