Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
edf171ed
Commit
edf171ed
authored
Jul 24, 2025
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
366f4fc0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
nginx.conf
+4
-3
No files found.
nginx.conf
View file @
edf171ed
...
@@ -5,14 +5,15 @@ server {
...
@@ -5,14 +5,15 @@ server {
root
/usr/share/nginx/html
;
root
/usr/share/nginx/html
;
index
index.html
;
index
index.html
;
# 主应用路由(history 模式)
location
/
{
location
/
{
try_files
$uri
$uri
/
/index.html
;
try_files
$uri
$uri
/
/index.html
;
add_header
Cache-Control
"no-store,
no-cache,
must-revalidate"
;
# 禁用缓存
add_header
Cache-Control
"no-store,
no-cache,
must-revalidate"
;
}
}
# 子应用 /cffp/ 路由
location
/cffp/
{
location
/cffp/
{
alias
/usr/share/nginx/html/
;
try_files
$uri
$uri
/
/cffp/index.html
;
# 移除 alias,直接使用 root
try_files
$uri
$uri
/
/cffp/index.html
;
}
}
# 禁止访问 .env 文件
# 禁止访问 .env 文件
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment