Hello. There is a VPS on nginx + apache (+ ispmanager)
There is a site django + oscar.
I upload the site archive to the place where the domain is pointing, I execute the commands make libs make install servise
But the domain simply opens the contents of this folder http://aleol.ru/
To do this, get a makefile
.PHONY: libs install start stop NAME = chem CTX = prod PORT = 805 DOMAIN = 5.45.121.227 DJANGO_SETTINGS_MODULE = $(NAME).settings.$(CTX) export DJANGO_SETTINGS_MODULE libs: aptitude -y install python-pip python-dev build-essential python-virtualenv libjpeg-dev daemon nginx uwsgi uwsgi-plugin-python git libmysqlclient-dev virtualenv oscar oscar/bin/pip install django-oscar==1.1.1 pysolr simplejson xlrd MySQL- python oscar/bin/pip uninstall -y Pillow oscar/bin/pip install Pillow rm -rf solr-4.7.2 wget -q http://archive.apache.org/dist/lucene/solr/4.7.2/solr-4.7.2.tgz -O solr-4.7.2.tgz tar xzf solr-4.7.2.tgz mv solr-4.7.2/example/solr/collection1/conf solr-4.7.2/example/solr/collection1/conf.original mkdir solr-4.7.2/example/solr/collection1/conf cp -rp solr.conf/* solr-4.7.2/example/solr/collection1/conf install: python confgen.py $(NAME) $(CTX) $(DOMAIN) $(PORT) rm -rf /etc/nginx/sites-enabled/$(NAME)_nginx.conf rm -rf /etc/uwsgi/apps-enabled/$(NAME)_uwsgi.ini ln -s $(shell pwd)/$(NAME)_nginx.conf /etc/nginx/sites-enabled/ ln -s $(shell pwd)/$(NAME)_uwsgi.ini /etc/uwsgi/apps-enabled/ chmod 744 solr.run chown -R www-data pid chgrp -R www-data pid chown -R www-data logs chgrp -R www-data logs chown -R www-data $(NAME)/public chgrp -R www-data $(NAME)/public oscar/bin/python $(NAME)/manage.py migrate oscar/bin/python $(NAME)/manage.py loaddata init oscar/bin/python $(NAME)/manage.py loaddata flatpage oscar/bin/python $(NAME)/manage.py loaddata offer oscar/bin/python $(NAME)/manage.py collectstatic --noinput chown -R www-data $(NAME)/public chgrp -R www-data $(NAME)/public static: oscar/bin/python $(NAME)/manage.py collectstatic --noinput start: ./solr.run start service uwsgi restart stop: service uwsgi stop ./solr.run stop and in the configuration file ALLOWED_HOSTS = ['.aleol.ru', '5.45.121.227']
Tell me how to bind the domain to the site Django? Where to dig?