Answer the question
In order to leave comments, you need to log in
Why is apache giving 403?
I've been working with Debian for a long time, no problems with django, etc. no - actually that's why I preferred debian, not ubuntu. But a week ago I thought about comfort and decided to transfer from windows to ubuntu, since it is not very convenient to work with VM.
Unfortunately, it was not possible to set up a django project on ubuntu 14.04 LTC.
Tell me who can, what's the problem?
Apache configuration:
<VirtualHost *:80>
ServerName 127.0.0.1
ErrorLog /home/dmitriy/lm_env/lm/logs/apache_error.log
CustomLog /home/dmitriy/lm_env/lm/logs/apache_acces.log common
WSGIDaemonProcess lm python-path=/home/dmitriy/lm_env/lm:/home/dmitriy/lm_env/lib/python2.7/site-packages
WSGIProcessGroup lm
WSGIScriptAlias / /home/dmitriy/lm_env/lm/deploy/wsgi.py
<Directory /home/dmitriy/lm_env/lm/deploy>
Order deny,allow
Allow from all
</Directory>
</VirtualHost>
import os, sys, site
site.addsitedir("/home/dmitriy/lm_env/lib/python2.7/site-packages")
os.environ["DJANGO_SETTINGS_MODULE"] = "lm.settings"
sys.path.append("/home/dmitriy/lm_env/lm")
sys.path.append("/home/dmitriy/lm_env/lm/lm")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
Answer the question
In order to leave comments, you need to log in
<Directory /home/dmitriy/lm_env/lm/deploy>
Order deny,allow
Allow from all
</Directory>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question