Hey guys,
It seems we are receiving a 404 Nginx error for a Wordpress website when setting up custom permalinks. We've tried entering the following directive for the website
location / {
try_files $uri $uri/ /index.php?$args;
}
This is the error that we receive:
/var/www/vhosts/system/mydomain.com/conf/vhost_nginx.conf:1 nginx: configuration file /etc/nginx/nginx.conf
We've also tried the following:
• Restarting nginx and apache several times
• Using webserver configuration troubleshooter and repaired all multiple times.
• Going into the Wordpress dashboard and saving the default permlinks, then changing to the custom permalinks.
Still the issue persists and pages do not work. It displays NGINX 404 error
Please advise, thanks.
It seems we are receiving a 404 Nginx error for a Wordpress website when setting up custom permalinks. We've tried entering the following directive for the website
location / {
try_files $uri $uri/ /index.php?$args;
}
This is the error that we receive:
/var/www/vhosts/system/mydomain.com/conf/vhost_nginx.conf:1 nginx: configuration file /etc/nginx/nginx.conf
We've also tried the following:
• Restarting nginx and apache several times
• Using webserver configuration troubleshooter and repaired all multiple times.
• Going into the Wordpress dashboard and saving the default permlinks, then changing to the custom permalinks.
Still the issue persists and pages do not work. It displays NGINX 404 error
Please advise, thanks.