Welcome to Centmin Mod Community
Become a Member

SSL a version that's support HTTP/2 And letsencrypt

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Cr0w, Mar 25, 2016.

  1. Cr0w

    Cr0w Member

    165
    9
    18
    Mar 17, 2015
    Iran
    Ratings:
    +13
    Local Time:
    11:47 AM
    1.9.x
    5.5
    how do i enable http/2 support + php7 with lets encrypt ?

    please give me more information , thanks alot
     
  2. eva2000

    eva2000 Administrator Staff Member

    28,970
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    5:17 PM
    Nginx 1.13.x
    MariaDB 5.5
    PHP 7 already supported via centmin.sh menu option 5.

    For HTTP/2 see Nginx HTTP/2 protocol to succeed Google SPDY Centmin Mod LEMP stack's nginx vhost site generator (centmin.sh menu option 2) can automatically create the HTTP/2 SSL based vhost with a self-signed SSL certificate. Then you need to switch from self-signed SSL to paid or web browser trusted SSL certificate (i.e. Letsencrypt)
    If it's for existing nginx vhost site you need HTTP/2 SSL vhost, see Nginx - Install self signed certificate after vhost is created? | Centmin Mod Community

    However, letsencrypt is only experimental in 123.09beta01le4 separate branch for testing right now and does not contain the most up to date code compared to 123.09beta01 as it's solely for letsencrypt integration testing as outlined in below 2 links:
     
  3. Cr0w

    Cr0w Member

    165
    9
    18
    Mar 17, 2015
    Iran
    Ratings:
    +13
    Local Time:
    11:47 AM
    1.9.x
    5.5
    i updated the nginx 1.9.12

    then

    Snapshot_2016-03-24_141821.png

    but the result is :

    HTTP/1.1 404 Not Found => Date => Thu, 24 Mar 2016 21:16:06 GMTContent-Type => text/html; charset=utf-8Content-Length => 162Connection => closeServer => nginx centminmodX-Powered-By => centminmod
     
  4. eva2000

    eva2000 Administrator Staff Member

    28,970
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    5:17 PM
    Nginx 1.13.x
    MariaDB 5.5
    what url you try accessing when you get 404 errors ?

    To troubleshoot, you need to check the the nginx upgrade log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the initial install log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    also what's output of
    Code:
    nginx -t
    when you run centmin.sh menu option 4 there's a nginx upgrade log timestamped at /root/centminlogs

    if you type this command it lists all logs in date ascending order so latest log at bottom
    Code (Text):
    ls -lArt /root/centminlogs

    so copy the entire contents of latest nginx_upgrade log to gist.github.com or pastebin.com
     
    • Like Like x 1
  5. Cr0w

    Cr0w Member

    165
    9
    18
    Mar 17, 2015
    Iran
    Ratings:
    +13
    Local Time:
    11:47 AM
    1.9.x
    5.5
    i don't get any 404 errors , i just use an non exist url to test my Encrypted url with https . the problem is the HTTP/2.0
    I tested with curl but still my website is on HTTP 1.1

    nginx -t
    nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
    nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful

    nginx is working good , there is't any isuess with nginx

    PHP:
    ls -lArt /root/centminlogs
    total 3828
    -rw-r--r-- 1 root root   18915 Mar 24 16:07 centminmod_1.2.3-eva2000.09.001_2403                                                                                        16-155646_yuminstall_centos7.log
    -rw-r--r-- 1 root root   79358 Mar 24 16:08 centminmod_yumtimes_240316-155646.lo                                                                                        g
    -rw-r--r-- 1 root root      38 Mar 24 16:08 centminmod_profiletimes_240316-15564                                                                                        6.log
    -rw-r--r-- 1 root root     274 Mar 24 16:08 securedtmp.log
    -rw-r--r-- 1 root root      45 Mar 24 16:12 centminmod_libresslinstalltime_24031                                                                                        6-155646.log
    -rw-r--r-- 1 root root  634444 Mar 24 16:14 centminmod_ngxinstalltime_240316-155                                                                                        646.log
    -rw-r--r-- 1 root root    9321 Mar 24 16:16 setio_innodbstatus-before-240316-161                                                                                        616.log
    -rw-r--r-- 1 root root     744 Mar 24 16:17 centminmod_setio_240316-161616.log
    -rw-r--r-- 1 root root    9297 Mar 24 16:17 setio_innodbstatus-after-240316-1616                                                                                        16.log
    -rw-r--r-- 1 root root    1071 Mar 24 16:17 gcc_php_native.log
    -rw-r--r-- 1 root root      58 Mar 24 16:30 centminmod_phpinstalltime_240316-155                                                                                        646.log
    -rw-r--r-- 1 root root     378 Mar 24 16:30 zendopcache_passfile.txt
    -rw-r--r-- 1 root root   30741 Mar 24 16:34 centminmod_1.2.3-eva2000.09.001_2403                                                                                        16-155646_yum-log.log
    -rw-r--r-- 1 root root     125 Mar 24 16:34 install.utc.time.log
    -rw-r--r-- 1 root root 2364526 Mar 24 16:34 centminmod_1.2.3-eva2000.09.001_2403                                                                                        16-155646_install.log
    -rw-r--r-- 1 root root   16995 Mar 24 19:09 centminmod_1.2.3-eva2000.09.001_2403                                                                                        16-190549_nginx_addvhost.log
    -rw-r--r-- 1 root root    7664 Mar 24 19:48 centminmod_240316-194812_nginx_addvh                                                                                        ost_nv.log
    -rw-r--r-- 1 root root      45 Mar 24 20:51 centminmod_libresslinstalltime_24031                                                                                        6-204707.log
    -rw-r--r-- 1 root root    1003 Mar 24 20:52 gcc_native.log
    -rw-r--r-- 1 root root  669058 Mar 24 20:55 centminmod_1.2.3-eva2000.09.001_2403                                                                                        16-204707_nginx_upgrade.log
     
  6. eva2000

    eva2000 Administrator Staff Member

    28,970
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    5:17 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  7. Cr0w

    Cr0w Member

    165
    9
    18
    Mar 17, 2015
    Iran
    Ratings:
    +13
    Local Time:
    11:47 AM
    1.9.x
    5.5
    well thanks master :D Yeah! ----.com supports HTTP/2.0.
    thanks for your fast and helpful answers and support

    How to test HTTP/2 via command line?
    Get the latest cURL release and use this command: curl --http2.