I want to serve Django application at http://SERVER-IP/ OR a domain (www.example.com) instead of http://SERVER-IP/Project (www.example.com/Project) using BITNAMI Django Stack(v4.2).
I followed the documentation here for creating new application which is working perfect but I didn't find the way how to configure Django application at http://SERVER-IP/.
OS Details:
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
I had tried:
- Move application files form
~/apps/django/django_projects/PROJECT/
to~/apps/django/django_projects/
- Updated all path in thses conf files:
- httpd-prefix.conf
- httpd-app.conf
- PROJECT/wsgi.py
- Restart the Apache server.
But unfortunately, still I'm getting the apache homepage at http://SERVER-IP/ instead of Django application homepage. One more thing Django application still accessible at http://SERVER-IP/Project successfully.
Note: I need both services is running php
and django
.
PHP demo app I've placed in htdocs/demo/index.php
I want also this approachable form URL http://SERVER-IP/hello/index.php
.
Someone, please guide me!!! How to do that?