How to use nginx as a reverse proxy to local services, in DirectAdmin?

I’m not really sure if this is the right place to ask. I’m a noob at nginx and web hosting in general (hence DirectAdmin).

​

I have a VPS that’s running DirectAdmin and hosting a couple websites for my personal use. I want to install some additional services via Docker and I want to use DirectAdmin’s nginx to reverse proxy to them, with SSL.

​

Because DirectAdmin has an option to use nginx as a reverse proxy in front of Apache (nginx\_apache, which is what I’m using), when I go to Google stuff like “directadmin nginx reverse proxy” or “directadmin reverse proxy”, the results are all related to that nginx\_apache set up where nginx serves as a reverse proxy to Apache only.

​

I’d like some instructions for setting up nginx where it reverse proxies [mydomain.com](https://mydomain.com) to a port, i.e. [http://localhost:8080](http://localhost:8080).

​

My setup:

\- Ubuntu 20.04

\- DirectAdmin Personal Lite

\- Webserver: NGINX+Apache

\- PHP-FPM version 7.4 and 8.1



View Reddit by really_bad_eyesView Source

our recommended web hosting companies

NameCheap

website link: namecheap.pxf.io/Alaaeldin.medium

Hostinger

website link: https://hostinger.sjv.io/Jr95Qr

InMotion hosting

website link: partners.inmotionhosting.com/XxJ0Jg

Hubspot

website link: hubspot.sjv.io/DV2O35

Leave a Comment

Your email address will not be published. Required fields are marked *