nginx server config
-
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
https://www.digitalocean.com/community/questions/wordpress-and-nginx-404-errors-all-but-home-pagethe 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
- The topic ‘nginx server config’ is closed to new replies.