Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>try <a href="http://localhost/index.html" rel="nofollow">http://localhost/index.html</a> does that show the apache page?</p> <p>If you wsgi is configured on root correctly it wont.</p> <p>You get that error message because you might be asking the webserver for the directory listing of www folder</p> <p><strong>edit:</strong></p> <p>My projects are always in</p> <p>/var/pyproj//pysrc/ and server files i put in /var/py_proj//server/</p> <p>Here is my go to wsgi script</p> <pre><code>import os, sys import logging logger =logging.getLogger("") logger.setLevel(logging.DEBUG) handler = logging.StreamHandler(sys.stderr) handler.setLevel(logging.DEBUG) formatter = logging.Formatter('%(levelname)-8s %(messages)s') handler.setFormatter(formatter) logger.addHandler(handler) sys.stdout = sys.stderr from os.path import abspath, dirname, join import site PROJECT_ROOT = abspath(join(dirname(__file__), "../pysrc")) SETTINGS_LOC = abspath(join(PROJECT_ROOT, '')) site.addsitedir(SETTINGS_LOC) os.environ["DJANGO_SETTINGS_MODULE"] = "settings" from django.core.management import setup_environ import settings setup_environ(settings) sys.path.insert(0, join(PROJECT_ROOT, "apps")) from django.core.handlers.wsgi import WSGIHandler application = WSGIHandler() </code></pre> <p>and i use a vhost.conf</p> <pre><code>WSGIDaemonProcess pinax_demo user=www-data group=www-data threads=10 python-path=/var/.virtualenvs/pinax_demo/lib/python2.6/site-packages &lt;Directory /var/py_proj/pinax_demo/server/&gt; Order deny,allow Allow from all &lt;/Directory&gt; Alias /pinax_demo /var/py_proj/pinax_demo/server/pinax_demo.wsgi &lt;Location /pinax_demo/&gt; #WSGIProcessGroup must match the WSGIDaemonProcess WSGIProcessGroup pinax_demo SetHandler wsgi-script Options +ExecCGI &lt;/Location&gt; </code></pre> <p>which i include in the sites-available folder in a file that looks like this</p> <pre><code>&lt;VirtualHost *:8080&gt; DocumentRoot /var/www/ &lt;Directory /var/www/&gt; Order deny,allow Allow from all Options -Indexes FollowSymLinks DirectoryIndex index.php AllowOverride None &lt;/Directory&gt; ServerAdmin oto@example.com LogLevel error ErrorLog /var/srv_logs/apache_error.log CustomLog /var/srv_logs/apache_access.log combined #insert Include /var/py_proj/pinax_demo/server/vhost.conf Include /var/py_proj/&lt;other&gt;/server/vhost.conf Include /var/py_proj/&lt;other&gt;/server/vhost.conf &lt;/VirtualHost&gt; </code></pre> <p>httpd.conf is empty. Apache is also terrible at sending static files so i have my apache setup on port 8080 and nginx setup on port 80 which forwards to apache. You should be able to just change the port on my sites-avaiable file to run it without nginx but i would not go live that way</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. 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