After the Typecho framework is deployed, access to the inside page 404 error

Source: Internet
Author: User

After the Typecho framework is deployed, access the internal page 404 error.

Web server Nginx

Nginx Configuration

# you could add here your# server {# ... #}# statements for each of the your virtual hosts to this file### your should look at The following URL ' s in order to grasp a solid understanding# of Nginx configuration files in order to fully unleash the P Ower of nginx.# http://wiki.nginx.org/Pitfalls# http://wiki.nginx.org/QuickStart# http://wiki.nginx.org/ configuration## generally, you'll want to move this file somewhere, and start with a clean# file but keep this around fo R reference.    Or just disable in sites-enabled.##-see/usr/share/doc/nginx-doc/examples/for more detailed examples.# #server {    Listen default_server;    Listen [::]:80 default_server Ipv6only=on;    #root/usr/share/nginx/html;    root/home/pog/www;    Index index.php index.html index.htm;    # make site accessible from http://localhost/#server_name localhost;    server_name www.517557.com; Location/{# First attempt-serve request as file, then # as directory, then fall back to DisplayiNg a 404.        Try_files $uri $uri/= 404; # Uncomment to enable Naxsi in this location # Include/etc/nginx/naxsi.rules} # only for Nginx-naxsi used W        ITH nginx-naxsi-ui:process denied requests #location/requestdenied {# Proxy_pass http://127.0.0.1:8080;    #} #error_page 404/404.html;    # REDIRECT Server error pages to the static page/50x.html # #error_page 502 503 504/50x.html;    #location =/50x.html {# root/usr/share/nginx/html; #} # Pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ \.php$ {try_files $u    RI = 404;    # Fastcgi_split_path_info ^ (. +\.php) (/.+) $; # # Note:you should has "cgi.fix_pathinfo = 0;" In PHP.ini # # # with php5-cgi alone: # fastcgi_pass 1    27.0.0.1:9000;        # # with Php5-fpm:fastcgi_pass Unix:/var/run/php5-fpm.sock;        Fastcgi_index index.php;        Fastcgi_split_path_info ^ (. +\.php) (. *) $; Fastcgi_paraM Path_info $fastcgi _path_info;        Fastcgi_param script_filename $document _root$fastcgi_script_name;    Include Fastcgi_params;     } # Deny access to. htaccess files, if Apache ' s document Root # concurs with Nginx ' s one # #location ~/\.ht {    # Deny All; #}}# Another virtual host using mix of ip-, name-, and port-based configuration# #server {# Listen 8000;# listen some         name:8080;# server_name somename alias another.alias;# root html;# index index.html index.htm;## location/{# Try_files $uri $uri/=404;#}#}# HTTPS server# #server {# listen 443;# server_name localhost;## root HT ml;# index index.html index.htm;## SSL on;# ssl_certificate cert.pem;# ssl_certificate_key cert.key;## ssl_ Session_timeout 5m;## ssl_protocols SSLv3 TLSv1 TLSv1.1 tlsv1.2;# ssl_ciphers "high:!anull:! MD5 or high:!anull:! Md5:!3des "; # ssl_prefer_server_ciphers on;## location/{# try_files $uri $uri/=404;#}#}

Error phenomena

Nginx Log

121.22.72.122--[26/nov/2016:20:38:14 +0800] "Get/favicon.ico http/1.1" 404 208 "http://www.517557.com/" "mozilla/5.0 ( Windows NT 6.3; WOW64) applewebkit/537.36 (khtml, like Gecko) C735 121.22.72.122--[26/nov/2016:20:38:17 +0800] "get/index.php/archives /1/http/1.1 "404 208" http://www.517557.com/"" mozilla/5.0 (Windows NT 6.3; WOW64) applewebkit/537.36 (khtml, lik736 121.22.72.122--[26/nov/2016:20:38:21 +0800] "get/index.php/archives/1/http/ 1.1 "404 208" http://www.517557.com/"" mozilla/5.0 (Windows NT 6.3; WOW64) applewebkit/537.36 (khtml, lik737 111.251.93.1--[26/nov/2016:20:39:45 +0800] "CONNECT mx-tw.mail.gm0.yahoodns.net:25 http/1.0 "181"-""-"738 121.22.72.122--[26/nov/2016:20:44:34 +0800]" get/http/1.1 "2279" http://www.517557.com/"" mozilla/5.0 (Windows NT 6.3; WOW64) applewebkit/537.36 (khtml, like Gecko) chrome/45.0739 121.22.72.122--[26/nov/2016:20:50:11 +0800] "get/index.ph p/start-page.html http/1.1 "404 208" http://www.517557.com/"" Mozilla/5.0 (Windows NT 6.3; WOW64) applewebkit/537.36 (khtm

Reply content:

After the Typecho framework is deployed, access the internal page 404 error.

Web server Nginx

Nginx Configuration

# you could add here your# server {# ... #}# statements for each of the your virtual hosts to this file### your should look at The following URL ' s in order to grasp a solid understanding# of Nginx configuration files in order to fully unleash the P Ower of nginx.# http://wiki.nginx.org/Pitfalls# http://wiki.nginx.org/QuickStart# http://wiki.nginx.org/ configuration## generally, you'll want to move this file somewhere, and start with a clean# file but keep this around fo R reference.    Or just disable in sites-enabled.##-see/usr/share/doc/nginx-doc/examples/for more detailed examples.# #server {    Listen default_server;    Listen [::]:80 default_server Ipv6only=on;    #root/usr/share/nginx/html;    root/home/pog/www;    Index index.php index.html index.htm;    # make site accessible from http://localhost/#server_name localhost;    server_name www.517557.com; Location/{# First attempt-serve request as file, then # as directory, then fall back to DisplayiNg a 404.        Try_files $uri $uri/= 404; # Uncomment to enable Naxsi in this location # Include/etc/nginx/naxsi.rules} # only for Nginx-naxsi used W        ITH nginx-naxsi-ui:process denied requests #location/requestdenied {# Proxy_pass http://127.0.0.1:8080;    #} #error_page 404/404.html;    # REDIRECT Server error pages to the static page/50x.html # #error_page 502 503 504/50x.html;    #location =/50x.html {# root/usr/share/nginx/html; #} # Pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ \.php$ {try_files $u    RI = 404;    # Fastcgi_split_path_info ^ (. +\.php) (/.+) $; # # Note:you should has "cgi.fix_pathinfo = 0;" In PHP.ini # # # with php5-cgi alone: # fastcgi_pass 1    27.0.0.1:9000;        # # with Php5-fpm:fastcgi_pass Unix:/var/run/php5-fpm.sock;        Fastcgi_index index.php;        Fastcgi_split_path_info ^ (. +\.php) (. *) $; Fastcgi_paraM Path_info $fastcgi _path_info;        Fastcgi_param script_filename $document _root$fastcgi_script_name;    Include Fastcgi_params;     } # Deny access to. htaccess files, if Apache ' s document Root # concurs with Nginx ' s one # #location ~/\.ht {    # Deny All; #}}# Another virtual host using mix of ip-, name-, and port-based configuration# #server {# Listen 8000;# listen some         name:8080;# server_name somename alias another.alias;# root html;# index index.html index.htm;## location/{# Try_files $uri $uri/=404;#}#}# HTTPS server# #server {# listen 443;# server_name localhost;## root HT ml;# index index.html index.htm;## SSL on;# ssl_certificate cert.pem;# ssl_certificate_key cert.key;## ssl_ Session_timeout 5m;## ssl_protocols SSLv3 TLSv1 TLSv1.1 tlsv1.2;# ssl_ciphers "high:!anull:! MD5 or high:!anull:! Md5:!3des "; # ssl_prefer_server_ciphers on;## location/{# try_files $uri $uri/=404;#}#}

Error phenomena

Nginx Log

121.22.72.122--[26/nov/2016:20:38:14 +0800] "Get/favicon.ico http/1.1" 404 208 "http://www.517557.com/" "mozilla/5.0 ( Windows NT 6.3; WOW64) applewebkit/537.36 (khtml, like Gecko) C735 121.22.72.122--[26/nov/2016:20:38:17 +0800] "get/index.php/archives /1/http/1.1 "404 208" http://www.517557.com/"" mozilla/5.0 (Windows NT 6.3; WOW64) applewebkit/537.36 (khtml, lik736 121.22.72.122--[26/nov/2016:20:38:21 +0800] "get/index.php/archives/1/http/ 1.1 "404 208" http://www.517557.com/"" mozilla/5.0 (Windows NT 6.3; WOW64) applewebkit/537.36 (khtml, lik737 111.251.93.1--[26/nov/2016:20:39:45 +0800] "CONNECT mx-tw.mail.gm0.yahoodns.net:25 http/1.0 "181"-""-"738 121.22.72.122--[26/nov/2016:20:44:34 +0800]" get/http/1.1 "2279" http://www.517557.com/"" mozilla/5.0 (Windows NT 6.3; WOW64) applewebkit/537.36 (khtml, like Gecko) chrome/45.0739 121.22.72.122--[26/nov/2016:20:50:11 +0800] "get/index.ph p/start-page.html http/1.1 "404 208" http://www.517557.com/"" Mozilla/5.0 (Windows NT 6.3; WOW64) applewebkit/537.36 (khtm

Error that log?

To turn on pseudo-static

If it is Lnmpa, you can set it directly. htaccess Redirect, if Lnmp can include typecho.conf try

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.