jiajieit
Chevereto Member
I use nginx web server set up, everything is normal, but page 404 error page appears.
error demo:http://imgchr.com/page/contact
nginx conf;
ftp;

error demo:http://imgchr.com/page/contact
nginx conf;
Code:
server
{
listen 80;
#listen [::]:80;
server_name imgchr.com www.imgchr.com;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/imgchr.com;
include none.conf;
#error_page 404 /404.html;
location ~ (\.htaccess$|\.svn) {
internal;
return 404;
}
location ~ [^/]\.php(/|$)
{
# comment try_files $uri =404; to enable pathinfo
try_files $uri =404;
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fastcgi.conf;
#include pathinfo.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location /
{
try_files $uri $uri/ /index.php?$query_string;
}
rewrite ^/login(.*)$ https://imgchr.com/login$1 permanent;
rewrite ^/signup(.*)$ https://imgchr.com/signup$1 permanent;
access_log off;
}
ftp;
