[Answered ]-How to reference Django Rest Framework Router URLs when Django is not serving the root of the web server

2👍

✅

From memory, use:

WSGIScriptAlias /api/ /opt/org/myproj/myapp/wsgi.py/api/

Put your Django stuff back to how it was.

This will only intercept sub url of ‘/api/’ but the WSGI application will still think it is at the root of the site.

Leave a comment