Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Make two configuration files in /etc/apache2/sites-available folder. Give them proper logical names according to your sites (e.g. example1.com , example12.com etc). Use a2ensite command to enable both of them and restart your apache server.</p> <p>Each of your config file should look something like this:</p> <pre><code>&lt;Virtualhost *:8032&gt; ServerName localhost ServerAdmin webmaster@example.com DocumentRoot "/usr/local/www/djcode/test" &lt;Directory "/usr/local/www/djcode/test"&gt; Options +ExecCGI Order allow,deny Allow from all &lt;/Directory&gt; Alias /site_media "/usr/local/www/djcode/test/site_media/" Alias /media "/usr/local/www/djcode/test/site_media/media/" WSGIDaemonProcess test user=www group=www processes=2 threads=5 WSGIProcessGroup test AddHandler wsgi-script .wsgi RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /test.wsgi/$1 [QSA,L] &lt;/Virtualhost *:8032&gt; </code></pre> <p>You'll also need to add up some directives to serve static content. Serving static content from apache has overhead so it'll be a better idea if you server it using some lightweight webserver such as Lighttpd or Nginx and connect to apache using reverse proxy to serve the django based content. <a href="http://lethain.com/entry/2009/feb/13/the-django-and-ubuntu-intrepid-almanac/" rel="nofollow noreferrer">Here's a tutorial on using NginX</a> </p> <p>Since you are using mod_wsgi, you can run each site as different user as well so that two of them may not access each other's data. This is useful if the two sites belong to different stakeholders.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload