Getting 403 Error: Apache2 mod_wsgi
<p>Me, and a friend of mine are facing a problem getting a raw entity of <a href="https://github.com/PiJoules/atchannel/blob/master/PRODUCTION.md" rel="nofollow" title="Guide to Setting it up">PI Joule's @channel (Link to "Production" Readme)</a> to work, currently supposed to be running at the domain atchannel.cf, as per the person's guide to set it up, as well as do what it said in the main README file <a href="https://github.com/PiJoules/atchannel/blob/master/README.md" rel="nofollow">here</a> </p>

<pre><code>&lt;VirtualHost *:80&gt;
    ServerName atchannel.cf
    WSGIScriptAlias / /var/www-atchannel/atchannel.wsgi
    &lt;Directory /var/www-atchannel&gt;
        Require all granted
    &lt;/Directory&gt;
    Alias /static /var/www-atchannel/atchannel/static
    &lt;Directory /var/www-atchannel/atchannel/static/&gt;
        Require all granted
    &lt;/Directory&gt;
    ErrorLog ${APACHE_LOG_DIR}/errorAtChannel.log
    LogLevel warn
    CustomLog ${APACHE_LOG_DIR}/accessAtChannel.log combined


 &lt;/VirtualHost&gt;
</code></pre>

<p>This is the Apache Virtual Host for the file, which matches up with the path to the site, but still returns a 403 forbidden error. Can anyone tell us what we're doing wrong?</p>

<p>Instead of:</p>

<pre><code>&lt;Directory /var/www-atchannel/atchannel/&gt;
    Order allow,deny
    Allow from all
&lt;/Directory&gt;
</code></pre>

<p>you should have:</p>

<pre><code>&lt;Directory /var/www-atchannel&gt;
    Order allow,deny
    Allow from all
&lt;/Directory&gt;
</code></pre>

<p>The directory didn't match the leading path for where the WSGI script file is located.</p>

python mongodb apache virtualhost wsgi