0👍
I think it’s the other way,
did you refer this ? https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-ubuntu-14-04
0👍
did you try to use virtual host ? so set 1 port to serve the backend and another port to server the frontend.
i also use apache httpd to server django & react apps, you can check my httpd.conf & httpd-vhosts.conf here Apache mod_wsgi django enable multi-thread multi-process
I have question, are you really want to serve both backend & frontend using same apache instance ? or you will have 2 instance / service for backend and frontend, so when one apache httpd server going down, that won’t inflicting the other.
- [Django]-Django – queryset with extra method returns empty, count() says otherwise
- [Django]-How To Create A Temp File Structure For Testing
- [Django]-Django / MySQL: How to do Autonomous Transactions (commit only sub-set of queries)?
- [Django]-How to download a file uploaded using django-filebrowser?
- [Django]-Django: Formset for adding captions to uploaded images
0👍
Firstly, delete the DocumentRoot and the first Alias and Directory that lead to the build
folder. Those are not needed. You only need the Alias and Directory that leads to the static folder inside build.
You will also need to make sure that Django knows where to find your React static files. I have already configured an app using this technique. Please see my post about this exact topic here
- [Django]-Django Temporary Images
- [Django]-Urls.py redirect with URL reversal and parameters — is there any easier way?
- [Django]-CSS missing from django admin pages on development server after execution of drop database
- [Django]-Use context processor only for specific application