So I'm trying to run OSQA on localhost, I'm pretty new to this kind of stuff, but I've run into a problem that I just can't seem to troubleshoot. The default page just shows a directory instead of loading the index.html file it should. Most places I see recommend changing the DocumentRoot in /ect/apache2/sites-enabled, but doing that doesn't change anything for me.
Image here -> http://imgur.com/TpHc34x
The actual file I want to load is at /var/www/osqa/forum/skins/default/templates/index.html
Relevant files:
/var/www/osqa/osqa.wsgi
import os
import sys
sys.path.append('/var/www')
sys.path.append('/var/www/osqa')
os.environ['DJANGO_SETTINGS_MODULE'] = 'osqa.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
/etc/apache2/sites-enabled/osqa
WSGISocketPrefix ${APACHE_RUN_DIR}
WSGIPythonHome /usr/local
WSGIPythonEggs /var/python/eggs
Options -Indexes
WSGIScriptAlias / /var/www/osqa/osqa.wsgi
ServerAdmin forum@example.com
DocumentRoot /var/www/
ServerName localhost
WSGIDaemonProcess OSQA
WSGIProcessGroup OSQA
DirectoryIndex index.html
DirectoryIndexRedirect on
>Alias /m/ "/var/www/osqa/forum/skins/"
Order deny,allow Allow from all </Directory>
Alias /upfiles/ "/var/www/osqa/forum/upfiles/"
Order deny,allow
Allow from all
CustomLog ${APACHE_LOG_DIR}/osqa.access.log common
ErrorLog ${APACHE_LOG_DIR}/osqa.error.log
Sorry about the formatting! Is there any other information that could help? I'd be happy to post any! This has been giving me trouble for a while.
Aucun commentaire:
Enregistrer un commentaire