Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
docker
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
提交
问题看板
Open sidebar
陈欢
docker
Commits
2e506748
提交
2e506748
authored
6月 11, 2022
作者:
陈欢
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新 nginx-site.conf
上级
24095d85
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
4 行增加
和
6 行删除
+4
-6
nginx-site.conf
base-images/nginx-php-fpm-main/conf/nginx-site.conf
+4
-6
没有找到文件。
base-images/nginx-php-fpm-main/conf/nginx-site.conf
浏览文件 @
2e506748
...
@@ -2,7 +2,7 @@ server {
...
@@ -2,7 +2,7 @@ server {
listen
80
;
## listen for ipv4; this line is default and implied
listen
80
;
## listen for ipv4; this line is default and implied
listen
[::]:
80
default
ipv6only
=
on
;
## listen for ipv6
listen
[::]:
80
default
ipv6only
=
on
;
## listen for ipv6
root
/
var
/
www
/
html
;
root
/
var
/
www
/
html
/
public
;
index
index
.
php
index
.
html
index
.
htm
;
index
index
.
php
index
.
html
index
.
htm
;
# Make site accessible from http://localhost/
# Make site accessible from http://localhost/
...
@@ -25,11 +25,9 @@ server {
...
@@ -25,11 +25,9 @@ server {
return
403
;
return
403
;
}
}
location
/ {
location
/ {
# First attempt to serve request as file, then
try_files
$
uri
$
uri
/ /
index
.
php
?$
query_string
;
# as directory, then fall back to index.html
}
try_files
$
uri
$
uri
/ =
404
;
}
error_page
404
/
404
.
html
;
error_page
404
/
404
.
html
;
location
= /
404
.
html
{
location
= /
404
.
html
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论