WebFaction
Community site: login faq
0
1

When I create a Django application in the WF control panel it creates a whole Django directory tree, also an apache2.

It seems like I should be able to share this between multiple projects but the httpd.conf doesn't have any virtual host sections (I guess it's included into one) and links to a single .wsgi script.

Is it possible to set up multiple (different) sites off a shared 'Django' WF app?

asked 27 Oct '10, 10:17

anentropic
81710
accept rate: 0%


Yes, you can run multiple sites from a single app - just edit your httpd.conf to create your VirtualHost sections, then use that same app on whatever sites you need in the control panel.

Here are some httpd.conf examples:

permanent link

answered 27 Oct '10, 10:23

seanf
12.2k41836
accept rate: 37%

thanks very much... this worked! I was worried that the httpd.conf I was looking at was already being included into the VirtualHost section of a master one.

things to note:

1) yes, your site listens on a strange port number (will be different for everyone)... WF must do some magic to then serve this to the web on port 80

2) as well as setting up the VirtualHosts in the shared Django httpd.conf you of course have to link your website to the shared Django app via the WF control panel

(27 Oct '10, 11:51) anentropic

The "magic" we do is simple proxying from yourdomain.com:80 to localhost:NNNNN (where NNNNN is your assigned port).

(27 Oct '10, 11:53) seanf
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:

×909
×27

question asked: 27 Oct '10, 10:17

question was seen: 3,584 times

last updated: 27 Oct '10, 11:53

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