Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Vesta+Nginx+Cloudlare Cname to SSL port

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
sharkstate
Posts: 12
Joined: Mon Nov 24, 2014 11:42 pm

Vesta+Nginx+Cloudlare Cname to SSL port
  • Quote

Post by sharkstate » Sun Sep 05, 2021 10:22 am

I run Vesta on Centos with Nginx ticked from the installation of Vesta and also using Cloudflare.

Trying to get my head around how to through Nginx forward a cname subdomain to a specific port using ssl.

Ive tried

Code: Select all

sudo nano /home/[username]/conf/web/[domain.com].nginx.ssl.conf
adding to that after the initital

Code: Select all

server {
:

server {
listen [ipaddress]:443 ssl;
server_name sub.[domain].com;
ssl_certificate /home/[username]/conf/web/ssl.[domain].com.pem;
ssl_certificate_key /home/[username]/conf/web/ssl.[domain].com.key;
location / {
proxy_pass https://[ipaddress]:2053;
}
}

This is clearly not correct and it breaks the server. Thanks for any pointers!
Top


Post Reply
  • Print view
1 post • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password