Discover Centmin Mod today
Register Now

Install i get error when i add 2 vhost

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Thanh, Oct 2, 2016.

  1. Thanh

    Thanh New Member

    22
    0
    1
    Jun 15, 2014
    Ratings:
    +1
    Local Time:
    10:32 PM
    i get note "
    Code:
    nginx: [warn] invalid parameter "spdy": ngx_http_spdy_module was superseded by ngx_http_v2_module in /usr/local/nginx/conf/conf.d/domain.com.conf:19
    nginx: [emerg] unknown directive "Allow" in /usr/local/nginx/conf/phpmyadmin_https.conf:7
    How can i fix it ?

    Thank you

     
  2. eva2000

    eva2000 Administrator Staff Member

    55,209
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    12:32 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    nginx spdy is no longer available in newer nginx versions. You can see the fix is to switch from spdy to http2 directive in vhos file /usr/local/nginx/conf/conf.d/domain.com.conf. Info is at Nginx HTTP/2 protocol to succeed Google SPDY :)

    As to 2nd error in /usr/local/nginx/conf/phpmyadmin_https.conf, can you post it's contents. Might want to use CODE tags for code How to use forum BBCODE code tags :)
     
  3. Thanh

    Thanh New Member

    22
    0
    1
    Jun 15, 2014
    Ratings:
    +1
    Local Time:
    10:32 PM
    Thanks Admin... I fix it successfull. But i get new error on another server.

    Code:
    [root@localhost ~]# service nginx restart
    Redirecting to /bin/systemctl restart  nginx.service
    Failed to restart nginx.service: Unit nginx.service failed to load: No such file or directory.
    Thank you
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,209
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    12:32 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  5. Thanh

    Thanh New Member

    22
    0
    1
    Jun 15, 2014
    Ratings:
    +1
    Local Time:
    10:32 PM
    [​IMG]
     
  6. eva2000

    eva2000 Administrator Staff Member

    55,209
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    12:32 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    FYI, 123.08stable no longer works with ngx_pagespeed, you need to update to 123.09beta01 for ngx_pagespeed. See news thread at Nginx 1.9.11 dynamic module compatibility.

    123.08stable has disabled ngx_pagespeed and lua nginx modules due to incompatibility with nginx 1.9.11 dynamic modules.

    If you want ngx_pagespeed for now you need to update Centmin Mod to 123.09beta01 outlined here Beta Branch - Centmin Mod .09 beta branch Testing

    With 123.09beta01, set in /etc/centminmod/custom_config.inc persistent config file you create or already created and set:
    Code (Text):
    NGINX_PAGESPEED=y

    and then recompile Nginx 1.11.4 or higher via centmin.sh menu option 4