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
ed5fc5b8
Commit
ed5fc5b8
authored
Apr 21, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add disable_page_redirect support
parent
d6759c7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
update_nginx.sh
vz/azbyka/update_nginx.sh
+7
-0
No files found.
vz/azbyka/update_nginx.sh
View file @
ed5fc5b8
...
...
@@ -42,10 +42,16 @@ cat <<EOF
access_log /var/log/nginx/
$ACONF
-access.log logdetail;
}
EOF
if
[
"
$NGINX_disable_page_redirect
"
!=
1
]
;
then
cat
<<
EOF
location = /
$SUBDIR
{
return 301 /
$SUBDIR
/\
$is_args
\
$args
;
}
EOF
fi
cat
<<
EOF
location /
$SUBDIR
/ {
root
$DROOT
;
...
...
@@ -61,6 +67,7 @@ cat <<EOF
proxy_pass
$UPSTREAM
;
include include/trans-proxy.conf;
EOF
if
[
"
$NGINX_disable_cache
"
!=
1
]
;
then
cat
<<
EOF
# rewrite to cache if allowed
...
...
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