Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix nginx server config

Discussion in 'Misc WordPress Requests' started by mochiejuns, Mar 7, 2018.

  1. mochiejuns


    nginx server config, by mochiejuns

    Hi guys,

    I would like to seek any help from you, i develop my project using apache then when i’m about to miragte it using [DUPLICATOR] plugin and install it on may prod server it installed successful but all other page went 404 except Home page. i found out our server runs NGINX and not apache, i found the solution for that using nginx config like in this link

    the page is all working slightly now but i noticed its so slow and loads forever after 1 min. then when our monitoring in server check it, the performance cpu and memory starts to escalate so from 50% to 99% – 100%, i cant tell what went wrong or what is missing in nginx config.

    Fyi may project placed in sub directory of the root in result the nginx config is

    location /<SUBFOLDER_NAME> {
    # First attempt to serve request as file, then
    # as directory, then fall back to displaying a 404.
    try_files $uri $uri/ /index.php?q=$uri&$args;
    #try_files $uri $uri/ =404;
    # Uncomment to enable naxsi on this location
    # include /etc/nginx/naxsi.rules

    thank you in advance

    nginx server config

Share This Page

Monarch Social Sharing Plugin