Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I run dozens of mod_wsgi/Django sites, PHP sites, and a Rails site with a single Apache.</p> <p>It's mostly done using virtual hosts but I have some that are running both on the same domain.</p> <p>You just need to put your <code>WSGIScriptAlias /...</code> after any other Location/Alias directives.</p> <p>Lets say, for example, I want to run phpMyAdmin on the same domain as a Django site. The config would look something like this:</p> <pre><code>Alias /phpmyadmin /full/path/to/phpmyadmin/ &lt;Directory /full/path/to/phpmyadmin&gt; Options -Indexes ...etc... &lt;/Directory&gt; WSGIScriptAlias / /full/path/to/django/project/app.wsgi &lt;Directory /full/path/to/django/project&gt; Options +ExecCGI ...etc... &lt;/Directory&gt; </code></pre> <p><strong>Edit</strong>: </p> <p>Your configuration should look something like this:</p> <pre><code>&lt;VirtualHost *:80&gt; DocumentRoot "C:/django_proj" ServerName localhost WSGIScriptAlias / "C:/django_proj/apache/proj.wsgi" &lt;Directory "C:/django_proj/apache"&gt; Options +ExecCGI Order allow,deny Allow from all &lt;/Directory&gt; &lt;/VirtualHost&gt; &lt;VirtualHost *:80&gt; DocumentRoot "C:/web" ServerName php.localhost Alias / C:/web &lt;Directory C:/web&gt; Options Indexes FollowSymLinks AllowOverride None Order Deny,Allow Allow from all &lt;/Directory&gt; &lt;/VirtualHost&gt; </code></pre> <p>You don't need those <code>&lt;Directory&gt;</code> directives in <code>http.conf</code>... do all your configuration in the Virtual hosts.</p> <p>Also, completely get rid of the <code>&lt;Directory /&gt;</code> block.</p>
    singulars
    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.
    3. VO
      singulars
      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