How to configure and run Laravel and Django project on different domains but same Apache server on Ubuntu 16.04 VPS Hostgator

53 views
Skip to first unread message

Pooja Aiivine

unread,
Aug 3, 2019, 10:01:06 AM8/3/19
to Django users
Hello All,
  I have hosted Laravel Project as well as Django Project on two different domains on Ubuntu 16.04 VPS  with Plesk Panel. Laravel project was working perfectly until the Django was not hosted. After I have done Django configuration in apache2.conf file my all laravel projects stopped working. Kindly guide me on how to run laravel and django project on different domain but on same apache server (version 2.4) on Ubuntu.

We have added following configuration in apache2.conf file 

WSGIScriptAlias / /var/www/vhosts/itssmartworld.com/MyAwesomeCart/mac/wsgi.py
WSGIPythonHome /var/www/vhosts/itssmartworld.com/MyAwesomeCart/venv
WSGIPythonPath /var/www/vhosts/itssmartworld.com/MyAwesomeCart

<Directory /var/www/vhosts/itssmartworld.com/MyAwesomeCart/mac>
    <Files wsgi.py>
        Require all granted
    </Files>
</Directory>

Regards.

- Pooja

Reply all
Reply to author
Forward
0 new messages