Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
0557904c
Commit
0557904c
authored
Nov 04, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update_nginx.sh: add SUBDIR support
parent
3fd7d3a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
update_nginx.sh
vz/azbyka/update_nginx.sh
+5
-5
No files found.
vz/azbyka/update_nginx.sh
View file @
0557904c
...
@@ -36,17 +36,17 @@ cat <<EOF
...
@@ -36,17 +36,17 @@ cat <<EOF
}
}
location = /
$
NAME
/server-status/ {
location = /
$
SUBDIR
/server-status/ {
proxy_pass
$UPSTREAM
;
proxy_pass
$UPSTREAM
;
include include/trans-proxy.conf;
include include/trans-proxy.conf;
access_log /var/log/nginx/
$ACONF
-access.log logdetail;
access_log /var/log/nginx/
$ACONF
-access.log logdetail;
}
}
location = /
$
NAME
{
location = /
$
SUBDIR
{
return 301 /
$
NAME
/\
$is_args
\
$args
;
return 301 /
$
SUBDIR
/\
$is_args
\
$args
;
}
}
location /
$
NAME
/ {
location /
$
SUBDIR
/ {
root
$DROOT
;
root
$DROOT
;
# Вместо несуществующих jpg, png, gif отдаём приготовленную картинку
# Вместо несуществующих jpg, png, gif отдаём приготовленную картинку
...
@@ -91,7 +91,7 @@ EOF
...
@@ -91,7 +91,7 @@ EOF
TASK
=
"
$1
"
TASK
=
"
$1
"
echo
"
$TASK
"
|
grep
-q
"ves
/
"
||
TASK
=
"ves/
$1
.task"
echo
"
$TASK
"
|
grep
-q
"ves
[/-]
"
||
TASK
=
"ves/
$1
.task"
load_config
"
$TASK
"
load_config
"
$TASK
"
...
...
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