I am running docker OpenVPN on a VPS and I have no problem to access the VPN or the admin interface with its ip on port 9443.
But I'd like to use it through a url like vpn.mydomain.com.
I have found some topics about it but is is not clear to me how to configure a reverse proxy with nginx.
I started with a simple conf :
Code: Select all
server {
listen 80;
listen [::]:80;
server_name vpn.mydomain.com;
location / {
proxy_pass https://localhost:9443/;
}
}
Using instead https://vpn.mydomain.com:9443 gives me access to the login page.
using :
Distributor ID: Debian
Description: Debian GNU/Linux 9.11 (stretch)
Release: 9.11
Codename: stretch
Sorry if I have posted in the wrong section of the forum.