WebFaction
Community site: login 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 17 Dec '10, 02:58

mertnuhoglu
284613
accept rate: 0%

edited 17 Dec '10, 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.

permanent link

answered 17 Dec '10, 03:09

klynton
1.6k129
accept rate: 42%

Hi,

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

Can anyone post a copy in this thread?

thanks, stefano

permanent link

answered 14 May '13, 11:01

stefanomancini
1
accept rate: 0%

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

(15 May '13, 16:24) seanf
permanent link

answered 09 Jun '13, 01:25

anishmenon
11
accept rate: 0%

edited 09 Jun '13, 01:26

Looks great - thanks!

(09 Jun '13, 01:28) ryans ♦♦

The 09 Jun 2013 post with the link

http://anishmenon.com/web-faction-multiple-django-projects-on-single-apache-instance/

is no longer working.

Can we get that tutorial info posted as an answer to this question so we don't have to rely on other websites?

Oh, I see more info at this subcomment: https://community.webfaction.com/questions/7760/apache-virtual-hosts-for-django

permanent link

answered 11 Feb '15, 14:41

twtwt
1815
accept rate: 20%

edited 11 Feb '15, 14:43

Your answer
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

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×904
×224
×24
×6

question asked: 17 Dec '10, 02:58

question was seen: 10,879 times

last updated: 27 Nov '16, 23:49

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM