• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Nginx help needed

Joined
Nov 1, 2008
Messages
3,944 (0.99/day)
Location
Vietnam
System Name Gaming System / HTPC-Server
Processor i5 8700K / R5 3600
Motherboard Z370 Aorus Ultra Gaming / MSI B450 Mortar Max
Cooling CM ML240L / CM Seidon 120XL
Memory 16Gb Hynix 3000 MHz/ 16Gb Samsung B 3200Mhz
Video Card(s) Colorful 1080Ti / 1060 GTX
Storage 750G MX300 / 8+4 TB WD Reds + 250 Sabrent NVMe
Display(s) 2x Dell U2419H / 720p 42" Plasma TV
Case Cooler master HAF 922 / Zalman HTPC case
Audio Device(s) On Board Realtek
Power Supply FSP 850 W Gold / 400 W IN-WIN
Mouse Logitech G502 Hero
Keyboard Wooting Two
Software Windows 10 x64
Hi All,

I'm trying to get Nginx to work with certbot to forward traffic from my public address e.g. silkstoneserver.ddns.net using ssl on port 443 to an service on my local network, but I'm encountering real difficulties.

I don't suppose anyone knows of a guide which I could use that would lead me through the process from the beginning?
I've tried following this one: https://www.nginx.com/blog/using-free-ssltls-certificates-from-lets-encrypt-with-nginx/ as well as others

It's straight from the nginx website, but as soon as I try to generate a certificate, I get a 'could not connect to the server to verify the domain' error.

I've checked that port 80 and 443 is open by mapping it to a different internal port and I can connect so I'm assuming that the guide must be missing some steps in order to get the nginx service listening on this port, which it seems to not be doing.

Any help would be much appreciated.
 

Aquinus

Resident Wat-man
Joined
Jan 28, 2012
Messages
11,386 (4.04/day)
Location
Concord, NH
System Name Kratos
Processor Intel Core i7 3930k @ 4.75Ghz
Motherboard ASUS P9X79 Deluxe
Cooling Corsair H100i V2
Memory G.Skill DDR3-2133, 16gb (4x4gb) @ 9-11-10-28-108-1T 1.65v
Video Card(s) Sapphire AMD Radeon RX Vega 64
Storage 2x120Gb SATA3 SSD Raid-0, 4x1Tb RAID-5, 1x500GB, 1x512GB Samsung 960 Pro NVMe
Display(s) 1x LG 27UD69P (4k), 2x Dell S2340M (1080p)
Case Antec 1200
Audio Device(s) Onboard Realtek® ALC898 8-Channel High Definition Audio
Power Supply Seasonic 1000-watt 80 PLUS Platinum
Mouse Logitech G602
Keyboard Rosewill RK-9100
Software Ubuntu 18.04 (5.3.0 Mainline Kernel)
Benchmark Scores Benchmarks aren't everything.

Solaris17

Dainty Moderator
Staff member
Joined
Aug 16, 2005
Messages
20,870 (4.03/day)
Location
Florida
System Name Venslar
Processor I9 7980XE
Motherboard MSI x299 Tomahawk Arctic
Cooling EK Custom
Memory 32GB Corsair DDR4 3000mhz
Video Card(s) Nvidia Titan RTX
Storage 2x 2TB Micron SSDs | 1x ADATA 128SSD | 1x Drevo 256SSD | 1x 1TB 850 EVO | 1x 250GB 960 EVO
Display(s) 3x AOC Q2577PWQ (2k IPS)
Case Inwin 303 White (Thermaltake Ring 120mm Purple accent)
Audio Device(s) Realtek ALC 1220 on Audio-Technica ATH-AG1
Power Supply Seasonic 1050W Snow
Mouse Roccat Kone Aimo White
Keyboard Ducky Shine 6 Snow White
Software Windows 10 x64 Pro
So you are trying to reverse proxy? Do you have a sub domain setup for that service at ddns?
 
Joined
Nov 1, 2008
Messages
3,944 (0.99/day)
Location
Vietnam
System Name Gaming System / HTPC-Server
Processor i5 8700K / R5 3600
Motherboard Z370 Aorus Ultra Gaming / MSI B450 Mortar Max
Cooling CM ML240L / CM Seidon 120XL
Memory 16Gb Hynix 3000 MHz/ 16Gb Samsung B 3200Mhz
Video Card(s) Colorful 1080Ti / 1060 GTX
Storage 750G MX300 / 8+4 TB WD Reds + 250 Sabrent NVMe
Display(s) 2x Dell U2419H / 720p 42" Plasma TV
Case Cooler master HAF 922 / Zalman HTPC case
Audio Device(s) On Board Realtek
Power Supply FSP 850 W Gold / 400 W IN-WIN
Mouse Logitech G502 Hero
Keyboard Wooting Two
Software Windows 10 x64
So you are trying to reverse proxy? Do you have a sub domain setup for that service at ddns?
Thanks Guys. The problem was with my double NAT setup. Port 80 wasn't being forwarded through to my main router as it was in use by the admin page on my isp router (even with WAN access disabled).
I simply changed the port for the admin page and it all instamagically worked. :)
 
Top