login community faq
0
2

I want to host multiple django sites on one apache instance. There is a very detailed howto tutorial in the old forum. But there are still a few issues I haven't understood:

According to the tutorial, we should add a <VirtualHost> entry to httpd.conf for each django app. I don't understand apart from httpd.conf settings whether we should define a domain, application and website for that django app through Webfaction's web control panel as usual.

I think I don't understand how Webfaction serves a web request. What does Webfaction's web control panel do actually? Is it possible to pass over control panel settings by using apache's httpd.conf document only?

asked Dec 17 '10 at 02:58

mertnuhoglu's gravatar image

mertnuhoglu
815

edited Dec 17 '10 at 03:00


Hi,

Once you've added the <virtualhost> setting in the control panel you need to add the domain(s) to the list of subdomains in the control panel. Adding the domain to the site record in the control panel will send the requests for your domain to that app.

The control panel couples the DNS and domain with the configuration necessary to get it to your application.

Incoming request -> Domain -> DNS lookups -> Your server -> Nginx (configuration file) -> Your Application.

The control panel is what configures nginx to match your domains with your applications so you you still need it for some things.

answered Dec 17 '10 at 03:09

klynton's gravatar image

klynton ♦♦
148128

Hi,

the old tutorial is no longer available in the old url.

Can anyone post a copy in this thread?

thanks, stefano

answered May 14 at 11:01

stefanomancini's gravatar image

stefanomancini
1

The configuration directives you need are available here: Apache Virtual Hosts for Django

Much of the rest of the original post was related to building Apache and mod_wsgi from source, which isn't really needed anymore

(May 15 at 16:24) seanf ♦♦ seanf's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×643
×150
×18
×4

Asked: Dec 17 '10 at 02:58

Seen: 2,132 times

Last updated: May 15 at 16:24

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited