Using ajenti as a subdomain on a web server

I have a web server with nginx and I need to configure ajenti to open as a subdomain, for example:

https://ajenti.mydomain.com/

Is it possible? Thank!

+3


source to share


1 answer


Have you tried this in your nginx-config? This helped me ... Just look at nginx reverse proxy with ajenti. This might help too.



server {

        listen 443;

        ...

        location / {
                proxy_pass https://127.0.0.1:8000;
                proxy_set_header  X-Real-IP  $remote_addr;
                proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
        }

        ...

}

      

0


source







All Articles