kylemanna / docker-openvpn

🔒 OpenVPN server in a Docker container complete with an EasyRSA PKI CA
https://hub.docker.com/r/kylemanna/openvpn/
MIT License
8.62k stars 2.37k forks source link

Is It Possible to Have More Than One Domain for One Server? #718

Open H-Shafiei opened 1 year ago

H-Shafiei commented 1 year ago

Hi, Thanks for your nice work here!

I want to use 2 different domains for one instance of openvpn server. Is that possible?

Let's say I choose vpn1.example.com for my server and your scripts create a certificate for this domain. What if I want to use both vpn1.example.com and vpn2.example.com at the same time for the same server. is that possible?

Thanks!

brainv commented 1 year ago

Have you tried creating CNAME entry to your DNS to point vpn2.example.com to vpn1.example.com ?