系统本地安装报错404

步步高升 发布于 安装使用 2021-11-27 00:13:09

nginx php7.3 本地电脑安装报错,显示404,找不到页面,怎么解决

最后编辑于 2023-03-19 12:52:10
4 693

回复(4)

沙发
伪静态没有配置好
发布于 2021-11-27 00:36:24
回复
板凳
ng需要配置以下伪静态:location / { #Redirect everything that isn't a real file to index.php try_files $uri $uri/ /index.php$is_args$args; } #If you want a single domain name at the front and back ends location /admin { try_files $uri $uri/ /admin/index.php$is_args$args; } location /mobile { try_files $uri $uri/ /mobile/index.php$is_args$args; }
发布于 2021-11-27 00:37:12
回复
地板

ng需要配置以下伪图像:

```

location / {

#Redirect所有非真实文件到index.php try_files $uri $uri//index.php$is_args$args; } #如果要前后端单域名location /admin { try_files $uri $uri//admin/index.php$is_args$args; } location /mobile { try_files $uri $uri/ /mobile/index.php$is_args$args; }

```
发布于 2021-11-28 18:04:19
回复
#4
配置伪静态可以参考 https://www.shopwind.net/forum/thread/322.html
发布于 2021-11-28 20:32:45
回复
Re :

步步高升 这家伙什么都没留下

  • 回答

    0
  • 发布

    1
  • 经验

    150

内容精选

联系我们

  • 微信官网

    关注公众号

    系统更新,推送提醒
  • 开发交流群

    技术交流Q群

    安装使用,开发交流

垂询热线:18978189162