Я клонировал проект Django с
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>
sudo nano /etc/apache2/httpd.conf
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>
django-shop.wsgi
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()
При переходе по ссылке выдает ошибку
Forbidden
You don't have permission to access / on this server.
Apache/2.4.12 (Ubuntu) Server at django-shop.tk Port 80