Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: become on November 30, 2017, 04:09:05 PM

Title: nginx startup error with 443 port
Post by: become on November 30, 2017, 04:09:05 PM
I have updated nginx today and I can't start it becouse of
[emerg] 26119#0: bind() to xxx.xxx.xxx.xxx:443 failed (98: Address already in use)

WHy is this error occured - nginx is used in cwp only for 80 proxy ?
Title: Re: nginx startup error with 443 port
Post by: Administrator on November 30, 2017, 04:19:30 PM
nginx if enable now handles SSL also and has support for http2
Title: Re: nginx startup error with 443 port
Post by: become on November 30, 2017, 05:28:07 PM
Yes I needed to switch to Apache only and then switch to apache + nginx
But there is a problem with htaccess right now.
I check in apache htaccess is connection is https if not - redirect to https
With nginx enabled I get redirect over and over
Title: Re: nginx startup error with 443 port
Post by: become on November 30, 2017, 07:13:33 PM
nginx if enable now handles SSL also and has support for http2

http2 is suported by nginx or/and apache by default now after last cwp update ?
Title: Re: nginx startup error with 443 port
Post by: JAYC on December 01, 2017, 09:27:39 AM
Yes I needed to switch to Apache only and then switch to apache + nginx
But there is a problem with htaccess right now.
I check in apache htaccess is connection is https if not - redirect to https
With nginx enabled I get redirect over and over

Here's a solution for that.
http://forum.centos-webpanel.com/centos-webpanel-bugs/nginx-apache-or-nginx-varnish-apache-issue/