Author Topic: nginx - php-fpm don't resolve https, stay in http with autossl  (Read 6176 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Hi
 So i've check a lot for the autossl and i still can't instal properly for 2 domain.
I have my domain.com reg with my registrar with the proper dns and a A record pointing to cwp ip.
And the second nameserver is set to ns2.centosweb... and the ip being 127.0.0.0
both ns resolve to the correct ip of their own.
in the centos free dns, i put mydomain.com and the ip of the cwp server. Is set at active.

2 user created, i can log in http directly to the sample centos webpage.

When i check the domain1.com , over the centos ns, it give me :
resolves to  ( cwp ip.)
    
Server Type: nginx/1.14.2
    
No SSL certificates were found on domain1.com. Make sure that the name resolves to the correct server and that the SSL port (default is 443) is open on your server's firewall.

 and in leafdns, it give : parent nameservers do not have your nameservers listed

 Port 443 is open in-out.

For domain1.com i did install autossl: Webserver / ssl certificates, Autossl.
webserver / webserver Domain Conf:
 config: nginx-) php-fpm , nginx default=php-fpm , nginx def vhost: force-https
. All said ok. But i cannot reach the https page.

///
And on the main domain2, with proper result with proper dns into leafdns.com result.
I can go on the centos test page html.
i did also install fine autossl, and in
webserver / webserver Domain Conf:
 config: nginx-php-fpm , nginx default=php-fpm , nginx def vhost: force-https
 or put a default, or put force-http2.   And click the rebuilt page at the bottom.

. All said ok. But i cannot reach the https page. going to domain.com stay only in http.
and https://domain.com  , give cannot reach.

Do i have to put ngins -) apache -) php-fpm.. or only nginc-php-fpm... ?

 I just want to point all web directly to https. I should have at least 1 working in ssl..

Thanks for tips.

Offline
*
Re: nginx - php-fpm don't resolve https, stay in http with autossl
« Reply #1 on: April 10, 2019, 09:11:04 PM »
probably the best it that is checked by someone but for start you can try with webservers rebuild if you are certain that all is ok with dns.
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: nginx - php-fpm don't resolve https, stay in http with autossl
« Reply #2 on: April 11, 2019, 02:17:12 AM »
Hi
 So yeah, i did try the nginx - apache- php-fpm, and nginx- php-fpm. , always said rebuilding all confirured vhost. all in green.  nginx in : force-https.

 The php version, i try to do the php switcher but it look it still stick with the v5.6.37. I try the latest, also in phpversion switcher v2.. but no change.

Did i have to install from the start, only nginx and apache.. ?


Offline
*
Re: nginx - php-fpm don't resolve https, stay in http with autossl
« Reply #3 on: April 11, 2019, 11:52:39 PM »
Hi  So try lot of stuff, so basically what i found to be working.. Not the old or the latest php version. I end up with the 7.2.10 and when redoing the Webservers Domain Conf :
it has to be : nginx - apache - php-fpm.

nginx default vhost: defaut
nginx defaul vhost templace : force-https
apache default vhost : php-fpm
php service config.. nothing there.

As i don't need apache.. i gues only nginx+php is there for test or another reason.. But it don't work on it's own.

All made from a fresh install, just domain pointing, a user created, AutoSsl put for each user and only csf firewall put turn at on.

So is all ok ?

And is the varnish.. is this can do any good.. or really going faster.. for a vps ?

thanks again

Offline
*****
Re: nginx - php-fpm don't resolve https, stay in http with autossl
« Reply #4 on: April 12, 2019, 10:58:34 AM »
Hey, varnish is cr***p do not use it  ;D
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services