跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • AMH创建好子域却404
未分類
5 12 月 2023

AMH创建好子域却404

徽墨客 大佬有话说 :

AMH创建好子域却404

AMH创建好子域却404,安装魔众抽奖系统,伪静态规则是魔众官网上的,使用的是laravel,想问下laravel5的伪静态规则为什么添加不了,是有哪里不对吗
—–
server {
    listen       80;
    server_namechoujiang.beiguosoft.com;
    charset utf-8;
    index index.php index.html;
    root /home/wwwroot/lnmp01/domain/choujiang.beiguosoft.com/web/public/;
    autoindex off;

    location ^~ /.git {
      deny all;
    }

    location / {
      try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ .php$ {
      fastcgi_pass   127.0.0.1:9000;
      fastcgi_indexindex.php;
      fastcgi_paramPHP_VALUE"open_basedir=/var/www/html/choujiang.beiguosoft.com/:/tmp/:/var/tmp/";
      fastcgi_paramSCRIPT_FILENAME$document_root$fastcgi_script_name;
      include fastcgi_params;
    }

    location ~ .(gif|jpg|jpeg|png|bmp|ico|css|js)$ {
       expires max;
    }

    location ~* .(eot|ttf|woff|woff2)$ {
      add_header Access-Control-Allow-Origin ‘*’;
    }

}

Amysql 大佬有话说 :

这个在『规则管理』直接选择laravel,添加一个规则使用就行。

(上面是整个主机的配置了,不是重写规则,server主机是不能嵌套主机的配置。)

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具