OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: wounwijit on May 13, 2024, 09:06:38 AM

Title: Cannot start nginx after setup revers proxy error nginx: [emerg] no "ssl_certifi
Post by: wounwijit on May 13, 2024, 09:06:38 AM
Hi forum ,
I am newbie on opnsene.
I build my home lab with basic opnsense 24.1.6 setup  with default LAN and DHCP WAN

In this point client can access internet fine then I setup web server (port 81) and test on LAN working find or NAT with port forwarding working fine .
Then i would like to improve security so  I install os-nginx   then
1.setup upstrem server , upstream to my wer server
2.setup location and http

Then enable then start nginx but cannot start in log show some thing error on nginx.conf

nginx log on opnsense
-----
nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed
-----
nginx: [emerg] no "ssl_certificate" is defined for the "listen ... ssl" directive in /usr/local/etc/nginx/nginx.conf:80
-----

my question is it posible enable http revers proxy without ssl cert.

Thanks.

Title: Re: Cannot start nginx after setup revers proxy error nginx: [emerg] no "ssl_certifi
Post by: cookiemonster on May 13, 2024, 10:22:34 PM
yes. In the upstream configuration, only need to disable (untick) the "Enable TLS (HTTPS)" option.