[Fixed]-Django listing files instead of showing home page

1๐Ÿ‘

โœ…

If you want to get your app up and running with Apache, you will have to enable reverse-proxying.

To do this, you can try adding the following lines to /opt/bitnami/apache2/conf/httpd.conf, supposing that your application myapp is running at port 8000:

ProxyPass /myapp http://localhost:8000/myapp
ProxyPassReverse /myapp http://localhost:8000/myapp

To make sure that the mod_proxy module is enabled, please find the following lines and uncomment them:

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so

Finally, after saving the changes you can proceed to restart Apache:

/opt/bitnami/ctlscript.sh restart apache

You should now be able to access your application in: http://localhost/myapp

๐Ÿ‘คmarcosbc

0๐Ÿ‘

Iโ€™m able to run the project with the development server. In Pycharm, I went to Tools -> Run manage.py Task -> run server

And then executed the url:

http://localhost:8000/myapp/

But still trying to figure out why it is not running with apache in Bitnami stack

๐Ÿ‘คAshutosh

Leave a comment