Skip to content
0
  • Categories
  • 讨论
  • Recent
  • Tags
  • Popular
  • Top
  • Users
  • Categories
  • 讨论
  • Recent
  • Tags
  • Popular
  • Top
  • Users
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
JIKE社区
  1. 首页
  2. 讨论区
  3. 技术专区
  4. 建站经验
  5. 网站迁移后只能打开首页,其他页面和文章404 Not Found nginx

网站迁移后只能打开首页,其他页面和文章404 Not Found nginx

Scheduled Pinned Locked Moved 建站经验
5 Posts 3 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    xiaowen
    🍌
    wrote on last edited by
    #1

    大佬们,网站迁移后只能打开首页,点击文章和其他页面就出现404 Not Found nginx,后台也登录不上去了,后台也只能打开登陆界面,输入用户名和密码之后点击登录也是报404 Not Found nginx,这个怎么解决?

    之前的服务器用的是宝塔搭建的,现在这个服务器没有用宝塔,用的LNMP一键包搭建的

    网站用的typecho

    求大佬救命!!

    1 Reply Last reply
    0
    • sandS Offline
      sandS Offline
      sand
      wrote on last edited by
      #2

      看起来是nginx和php配置的问题, 参考http://docs.typecho.org/servers
      具体什么原因建议还是看下nginx(/var/log/nginx/access.log和/var/log/nginx/error.log)和php的日志
      如果不会改nginx配置的话还是用宝塔吧.

      X 1 Reply Last reply
      1
      • sandS sand

        看起来是nginx和php配置的问题, 参考http://docs.typecho.org/servers
        具体什么原因建议还是看下nginx(/var/log/nginx/access.log和/var/log/nginx/error.log)和php的日志
        如果不会改nginx配置的话还是用宝塔吧.

        X Offline
        X Offline
        xiaowen
        🍌
        wrote on last edited by
        #3

        sand 说:

        看起来是nginx和php配置的问题, 参考http://docs.typecho.org/servers
        具体什么原因建议还是看下nginx(/var/log/nginx/access.log和/var/log/nginx/error.log)和php的日志
        如果不会改nginx配置的话还是用宝塔吧.

        好的,我在试试看,感谢

        1 Reply Last reply
        0
        • 我是小马甲~M Online
          我是小马甲~M Online
          我是小马甲~
          🤫
          wrote on last edited by
          #4

          楼上说的对。PHP没配置。

            location ~ [^/]\.php(/|$) {
              fastcgi_pass unix:/dev/shm/php-cgi.sock;
              fastcgi_index index.php;
              include fastcgi.conf;
            }
          
          

          唐宋元明清,连排小工兵!

          X 1 Reply Last reply
          0
          • 我是小马甲~M 我是小马甲~

            楼上说的对。PHP没配置。

              location ~ [^/]\.php(/|$) {
                fastcgi_pass unix:/dev/shm/php-cgi.sock;
                fastcgi_index index.php;
                include fastcgi.conf;
              }
            
            
            X Offline
            X Offline
            xiaowen
            🍌
            wrote on last edited by
            #5

            @malaohu 感谢,已经处理好了

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            Popular Topics - 热门主题
            • 阿里云Shell,可免费跑一些脚本
              孤
              孤傲的王
              0
              4
              192

            • 蚂蚁阿福App中10元可领体脂秤
              游魂Y
              游魂
              0
              4
              869

            • 今日支付宝福利活动(限时领取)
              鹏鹏啊折
              鹏鹏啊
              0
              3
              263

            • Win 10 RTM Professional Volume:MAK
              A
              anthat
              0
              2
              19

            • 📢 移动用户速领话费!
              我兜里就五十W
              我兜里就五十
              0
              2
              200

            • 豆包正式推出专业版,包月最低68元
              我是小马甲~M
              我是小马甲~
              0
              2
              86


            • Login

            • Don't have an account? Register

            • Login or register to search.
            夸克网盘
            4,374 topics
            百度网盘
            4,324 topics
            连续剧
            1,519 topics
            国产剧
            1,027 topics
            美剧
            707 topics
            动作片
            658 topics
            恐怖片
            524 topics
            动画片
            401 topics

            107

            Online

            44.0k

            Users

            50.0k

            Topics

            126.0k

            Posts
            • First post
              Last post