Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docker-test
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kunkka王辉
docker-test
Commits
6b142f2e
Commit
6b142f2e
authored
Sep 23, 2023
by
Kunkka王辉
😲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决nginx try file的问题
parent
9fc28fb6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
nginx-start.sh
src/nginx-start.sh
+10
-2
No files found.
src/nginx-start.sh
View file @
6b142f2e
...
...
@@ -50,6 +50,7 @@ location / {
fastcgi_ignore_client_abort on;
try_files \
$uri
\
$uri
/ /index.php?\
$query_string
;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
...
...
@@ -118,7 +119,7 @@ server {
{
return 404;
}
location /{
location /
{
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept";
add_header Access-Control-Allow-Methods "GET, POST, OPTIONS";
...
...
@@ -166,7 +167,7 @@ server {
{
return 404;
}
location /{
location /
{
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept";
add_header Access-Control-Allow-Methods "GET, POST, OPTIONS";
...
...
@@ -394,6 +395,13 @@ server {
location ^~ /presale/ {
proxy_pass http://
$HOST
:
$GALAXY_PRESALE_MICROS_API_HTTP_PORT
;
}
#REWRITE-END
location /{
# add_header Access-Control-Allow-Origin *;
# add_header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept";
# add_header Access-Control-Allow-Methods "GET, POST, OPTIONS";
try_files \
$uri
\
$uri
/ /index.html;
}
}
EOF
# presale-micros
...
...
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