the django docs you are associated with does not imply using apache as a reverse proxy. They simply suggest you use a separate web server, so I would say that the documents are not clear on this issue - they do not offer anything bad.
My initial answer suggested that you had nginx as a reverse proxy, because port 80 is an HTTP port, the one that is used when the browser tries to go to a URL without a specified port.
There are many complete guides for setting up nginx + apache through a quick google search, but here is the point of setting up nginx:
location / { # proxy / requests to apache running django on port 8081 proxy_pass http://127.0.0.1:8081/; proxy_redirect off; } location /media/ { # serve static media directly from nginx root /srv/anuva_project/www/; expires 30d; break; }
All you have to do is remove the proxy lines from the apache configuration and add proxy operators to your nginx.conf instead.
If you really want to serve your site from port 8081, you can potentially listen to nginx on port 8081 and listen to apache on another port.
The fact is that Apache is in some obscure port, it only serves requests sent to it from nginx, and static files are served by nginx.
Yuji 'Tomita' Tomita
source share