Code Monkey home page Code Monkey logo

Comments (7)

hoaquynhtim99 avatar hoaquynhtim99 commented on July 23, 2024

Bạn cấu hình các tham số của nginx lên bằng này hoặc cao hơn xem

fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;

Sau đó khởi động lại nginx

nginx -t
systemctl restart nginx

Đây là vấn đề thiết lập nginx hơn là vấn đề của code

from nukeviet.

Giaiphaptop avatar Giaiphaptop commented on July 23, 2024

Hi hoaquynhtim99,

Thanks bạn! Mình config nginx theo thông số trên của bạn những vẫn bị lỗi 502 Bad Gateway. Mình đã thử download mã nguồn nukeviet 4.5 về cài mới thì bước Check Server có 2 chổ not compatible (Hình đính kèm), không biết đây có phải là nguyên nhân không? Rất mong bạn tư vấn giúp

Trân trọng cảm ơn bạn!

not compatible

from nukeviet.

Giaiphaptop avatar Giaiphaptop commented on July 23, 2024

Hi hoaquynhtim99,

Mình gửi thêm hình ảnh đã cấu hình file nginx va proxy. Rất mong nhận được tư vấn từ bạn.

Trân trọng!
nginx config
Proxy config

from nukeviet.

hoaquynhtim99 avatar hoaquynhtim99 commented on July 23, 2024

Bạn thử lấy error_log tại /var/log/nginx/error_log xem sao.

from nukeviet.

Giaiphaptop avatar Giaiphaptop commented on July 23, 2024

Hi hoaquynhtim99,

Mình không thấy có folder nginx trong folder log (như đường dẫn trên)
duong dan

Trong Aapanel check nginx cũng không thấy có error
Nginx_Errorlog

Tuy nhiên, nếu mình dùng 1 domain mới, cài mới nukeviet (trên vps này luôn), cài xong vào admin thì xem được Nhật ký hệ thống của web.

Mong kinh nghiệm của bạn có thể giúp mình tìm được vấn đề

Trân trọng!

from nukeviet.

hoaquynhtim99 avatar hoaquynhtim99 commented on July 23, 2024

Tuy nhiên, nếu mình dùng 1 domain mới, cài mới nukeviet (trên vps này luôn), cài xong vào admin thì xem được Nhật ký hệ thống của web.

Mình chỉ nghĩ được khả năng liên quan timeout và buffer size. Còn đâu phải mày mò chứ không nhận định được gì thêm. Bởi site cũ thì trong trang log đó nó khá nặng. Cả buffer lẫn load lâu. Bạn cứ thử các config buffer và timout to lên thử xem sao. k không được thì lên M thử

from nukeviet.

Giaiphaptop avatar Giaiphaptop commented on July 23, 2024

Thanks bạn nhiều ha! Để mình tìm hiểu thêm

from nukeviet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.