Saturday, August 3, 2019

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

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

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e6023f56-2107-4234-b961-740ecd8bbf72%40googlegroups.com.

No comments:

Post a Comment