设为首页
收藏本站
切换到宽版
用户名
Email
自动登录
找回密码
密码
登录
注册
快捷导航
论坛
BBS
排行榜
Ranklist
搜索
搜索
热搜:
香港vps
香港VPS
amh
机柜
vps
分销
VPS
域名出售
火车头
云主机
不限流量
香港服务器
美国服务器
香港
全能空间
whmcs
digitalocean
本版
帖子
用户
MJJ论坛
»
论坛
›
主机综合交流
›
美国VPS综合讨论
›
AMH创建好子域却404
返回列表
查看:
1481
|
回复:
1
[nginx]
AMH创建好子域却404
[复制链接]
徽墨客
徽墨客
当前离线
积分
304
发表于 2023-12-5 13:34:16
|
显示全部楼层
|
阅读模式
AMH创建好子域却404,安装魔众抽奖系统,伪静态规则是魔众官网上的,使用的是laravel,想问下laravel5的伪静态规则为什么添加不了,是有哪里不对吗
-----
server {
listen 80;
server_name choujiang.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_index index.php;
fastcgi_param PHP_VALUE "open_basedir=/var/www/html/choujiang.beiguosoft.com/:/tmp/:/var/tmp/";
fastcgi_param SCRIPT_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
Amysql
当前离线
积分
3013
发表于 2023-12-5 18:05:56
|
显示全部楼层
这个在『规则管理』直接选择laravel,添加一个规则使用就行。
(上面是整个主机的配置了,不是重写规则,server主机是不能嵌套主机的配置。)
回复
支持
反对
举报
返回列表
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
注册
本版积分规则
发表回复
回帖后跳转到最后一页
浏览过的版块
亚洲服务器
支付工具讨论
Archiver
|
手机版
|
小黑屋
|
MJJ论坛
Copyright
MJJ论坛
© 2022 All Rights Reserved.
快速回复
返回顶部
返回列表