How to have two Yunohosts servers at home?

Thanks for the idea of the reverse proxy. I have 2 Yunohost servers. The main server is on (e.g) https://domain.com and I want the second server to be on https://dev.domain.com. Is it possible to configure nginx on the main server to forward the requests for https://dev.domain.com to the second server ? … Of course, I defined the CNAME on my DNS zone.

Following this http://blog.olivier-raulin.fr/2013/08/28/mise-en-place-dun-reverse-proxy-nginx/
I created a file /etc/nginx/sites-available/reverse with the following:

ssl_certificate /etc/ssl/domain.com.crt;
ssl_certificate_key /etc/ssl/domain.com.key;
server {
    listen 443;
    ssl on;

    server_name dev.domain.com;
    location / {
            proxy_pass https://192.168.1.10:443/;
    }
}

And… and… it does not work! Any advice? Do I really need a third machine for the reverse proxy?

1 Like