How can I fix 404 Page not found nginx?

Plus d'informations
il y a 9 mois 2 semaines #185612 par pqcuong
Dear everyone,

I just installed Lime survey system on my nginx server. Everything is good and I can access my homepage. In addition, I created a survey in my system. However, 404 Page not found error appeared on the screen when I click on the survey link. (My survey system link: )

Please help me to fix this problem. Many thanks. The following code is my server conf:

server {
server_name ;
root /home/khaosat/web/;
index index.php index.html index.htm;
access_log /var/log/nginx/domains/ combined;
access_log /var/log/nginx/domains/ bytes;
error_log /var/log/nginx/domains/ error;

location / {
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
expires max;
try_files $uri /index.php?$args;

location ~ [^/]\.php(/|$) {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
if (!-f $document_root$fastcgi_script_name) {
return 404;

fastcgi_index index.php;
include /etc/nginx/fastcgi_params;

error_page 403 /error/404.html;
error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html;

location /error/ {
alias /home/khaosat/web/;

location ~* "/\.(htaccess|htpasswd)$" {
deny all;
return 404;

include /etc/nginx/conf.d/*;
include /etc/nginx/conf.d/*;
include /etc/nginx/conf.d/*;

include /home/khaosat/conf/web/*;

Connexion ou Créer un compte pour participer à la conversation.

LimeSurvey Partners

Commencez dès maintenant !

Créez simplement un compte et commencez à utiliser LimeSurvey dès aujourd'hui.

Inscrivez-vous maintenant

Inscrivez-vous à notre Newsletter!