I think one solution can use a combination of PHP as an apache module or through FastCGI and use the apache mod_proxy module to do some kind of reverse proxy to access your gunicorn administration application
You may have a setting such as:
- Front Apache HTTP Server on port 80: www.host.com:80
- Backend gunicorn HTTP server on another port: other.host.com:8080 or localhost: 8080 with open access using mod_proxy and url, for example www.host.com/admin/
- Media HTTP Server: media.host.com, if it must be on the same system, you can use mod_proxy and start the NGINX server on a different TCP port.
Please note that you will not be able to get better performance with NGINX as a media server hidden behind apache with mod_proxy.
This part of the configuration is based on the ability to have more than one public IP address on this snippet.
source share