Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
whb
9 years ago
Commit
3e6f5206d85933fe9a9468a0c48884f063d2de29
1 parent
3d217772
pc的nginx配置
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
script/nginx/conf/vhosts/nginx.rls.web.yohobuy.com.conf
script/nginx/conf/vhosts/nginx.rls.web.yohobuy.com.conf
View file @
3e6f520
...
...
@@ -79,6 +79,32 @@ server
proxy_set_header
Accept
-
Encoding
"gzip"
;
}
location
^~ /
cart
/
index
{
proxy_redirect
off
;
proxy_pass
http
://
yohobuy
-
pc
;
proxy_set_header
Host
$
host
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
proxy_set_header
Accept
-
Encoding
"gzip"
;
}
location
^~ /
shopping
/
cart
{
proxy_redirect
off
;
proxy_pass
http
://
yohobuy
-
pc
;
proxy_set_header
Host
$
host
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
proxy_set_header
Accept
-
Encoding
"gzip"
;
}
location
^~ /
product
/
show_
{
proxy_redirect
off
;
proxy_pass
http
://
yohobuy
-
pc
;
proxy_set_header
Host
$
host
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
proxy_set_header
Accept
-
Encoding
"gzip"
;
}
# 其它默认
location
/ {
proxy_redirect
off
;
...
...
Please
register
or
login
to post a comment