karljohns0n / nginx-more

Development repository for nginx-more package
MIT License
120 stars 29 forks source link

Possibility To upgrade the nginx-more version 1.14.2 to 1.16.0? #4

Closed SwarupGolui closed 5 years ago

SwarupGolui commented 5 years ago

Hi, thank you for your great work. Nginx-more saved me a lot of Time :-) Any Possibility To upgrade the nginx-more version 1.14.2 to 1.16.0?

Thanks.......

karljohns0n commented 5 years ago

Sure, I was waiting feedbacks for #3 but it seems I will build and push 1.16.0 first! Packages should be in testing repo this week, I will update here.

SwarupGolui commented 5 years ago

ok I have install This https://repo.aerisnetwork.com/testing/centos/7/x86_64/nginx-more-1.16.0-1.el7.x86_64.rpm I Have Some Problem With WordPress Website URL is Working https://www.example.com but Login URL Not Working https://www.example.com/wp-login.php https://www.example.com/wp-admin/ redirect to 502 Bad Gateway

karljohns0n commented 5 years ago

I just published some test rpms, you are pretty quick! I tested them on el6 and el7, no issues with Laravel and WordPress websites.

yum --enablerepo=aeris-testing update nginx-more

About 502 Bad Gateway, are you using fpm-wordpress.conf? Do you have any error in your vhost error_log? Location /wp-login.php is declared in restrictions.conf however this file hasn't been modified since 6 months.

SwarupGolui commented 5 years ago

thanks dude I didn't see that... Now Its Work.....

location ~ ^/(status|ping)$ {

#fastcgi_pass php;
#access_log off;
#include conf.d/custom/admin-ips.conf; deny all;

}

location = /wp-login.php {

#limit_req zone=wplogin burst=1 nodelay;
#limit_req_status 444;
#error_log /dev/null crit; 
#access_log off;
#log_not_found off;
#try_files $uri =404;
#fastcgi_split_path_info ^(.+\.php)(/.+)$;
#fastcgi_pass php;

}

karljohns0n commented 5 years ago

So your issue is with fastcgi_pass php;. Do you use PHP-FPM on port 9000 or another upstream?

SwarupGolui commented 5 years ago

no i'm using separate socket for per domain

karljohns0n commented 5 years ago

Are you using fpm-wordpress-users then to use separate socket for per domain? I will make restrictions.conf compatible with separate socket in next release.

SwarupGolui commented 5 years ago

yes I Am Using fpm-wordpress-users But I Got Some Error log Can You Give Me You Email So I Can Send You The Log File

SwarupGolui commented 5 years ago

Can You Please Change --prefix=/usr/share/nginx To --prefix=/etc/nginx load_module modules/ngx_http_modsecurity_module.so; Not Working File Not Found load_module /usr/lib64/nginx/modules/ngx_http_modsecurity_module.so; Working

Thanks..........

SwarupGolui commented 5 years ago

Error log 2019/05/08 11:46:49 [info] 6108#6108: [ngx_pagespeed 1.13.35.2-0] No threading detected. Own threads: 1 Rewrite, 1 Expensive Rewrite. 2019/05/08 11:46:49 [info] 6108#6108: pagespeed: rollback gzip, explicit configuration in /etc/nginx/nginx.conf:43

karljohns0n commented 5 years ago

The prefix is the same as EPEL and Nginx packages to provide compatibility when doing yum swap nginx nginx-more. Those two informations about PageSpeed are OK, you can read more about them on PageSpeed forum.

I will let nginx-more-1.16.0 in testing repo for a few days then I will push them to stable. Thanks for testing!

SwarupGolui commented 5 years ago

Can You Please Check This? [error] 837#1063: [ngx_pagespeed 1.13.35.2-0] PageSpeed Serf fetch failure rate extremely high; only 0 of 18 recent fetches fully successful; is fetching working?

karljohns0n commented 5 years ago

Is your website in https? Using fetching? Ensure you have those in your nginx.conf:

        pagespeed FetchHttps enable;
        pagespeed FetchHttps enable,allow_self_signed;
        pagespeed SslCertDirectory /etc/pki/tls/certs;
        pagespeed SslCertFile /etc/pki/tls/cert.pem;

You'd better ask on Pagespeed Github or mailing list. Take a look at this issue: https://github.com/apache/incubator-pagespeed-ngx/issues/1562