How can I fix 404 Page not found nginx?

Plus d'informations
il y a 3 mois 1 semaine #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: khaosat.dtcc.edu.vn )

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

server {
listen 10.176.173.8:80;
server_name khaosat.dtcc.edu.vn www.khaosat.dtcc.edu.vn ;
root /home/khaosat/web/khaosat.dtcc.edu.vn/public_html;
index index.php index.html index.htm;
access_log /var/log/nginx/domains/khaosat.dtcc.edu.vn.log combined;
access_log /var/log/nginx/domains/khaosat.dtcc.edu.vn.bytes bytes;
error_log /var/log/nginx/domains/khaosat.dtcc.edu.vn.error.log 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_pass 127.0.0.1:9009;
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/khaosat.dtcc.edu.vn/document_errors/;
}

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

include /etc/nginx/conf.d/phpmyadmin.inc*;
include /etc/nginx/conf.d/phppgadmin.inc*;
include /etc/nginx/conf.d/webmail.inc*;

include /home/khaosat/conf/web/nginx.khaosat.dtcc.edu.vn.conf*;
}

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!