Answer the question
In order to leave comments, you need to log in
apache error Forbidden You don't have permission to access / on this server?
I cloned a Django project from https://github.com/nazandr/Shop
/etc/apache2/sites-available/django-shop.tk.conf
<VirtualHost *:80>
ServerName django-shop.tk
ServerAlias www.django-shop.tk
WSGIScriptAlias / /root/VapeShop/bin/VapeShop/VapeShop/Django-shop.wsgi
</VirtualHost>
LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so
WSGIScriptAlias / home/andrey/Shop/VapeShop/wsgi.py
WSGIPythonPath /home/andrer/Shop
<Directory /home/andrey/Shop>
<Files wsgi.py>
#Options FollowSymLinks
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order deny,allow
Allow from all
</Files>
</Directory>
import os
import sys
sys.path.append('~/Shop/')
os.environ['DJANGO_SETTINGS_MODULE'] = 'VapeShop.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
Answer the question
In order to leave comments, you need to log in
I don’t know if this is the reason or not, but there is a typo in the config in the path:
WSGIPythonPath /home/andrer/Shop
Reading Apache logs would give you all the information you need about your typos :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question