Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
hf
9 years ago
Commit
ebb2c0845c4d00bfeba63059709e57e7afb4d178
1 parent
c0701e78
code review by fei.hong: do add pc nginx config
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
148 additions
and
0 deletions
script/nginx/conf/vhosts/nginx.rls.web.yohobuy.com.conf
script/nginx/conf/vhosts/nginx.rls.web.yohobuy.com.conf
0 → 100644
View file @
ebb2c08
server
{
listen
80
;
server_name
www
.
yohobuy
.
com
;
root
/
Data
/
PE
/
yohobuy
-
pc
/
yohobuy
/
www
.
yohobuy
.
com
/
public
;
# 频道相关
location
= / {
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
= /
woman
{
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
= /
kids
{
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
= /
lifestyle
{
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
^~ /
common
{
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
^~ /
tools
{
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
;
proxy_pass
http
://
yohobuy
-
old
-
www
;
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
=/
favicon
.
ico
{
expires
30
d
;
}
location
=/
crossdomain
.
xml
{
expires
30
d
;
}
location
=/
robots
.
txt
{
expires
1
d
;
}
}
server
{
listen
80
;
server_name
new
.
yohobuy
.
com
;
root
/
Data
/
PE
/
yohobuy
-
pc
/
yohobuy
/
www
.
yohobuy
.
com
/
public
;
# 频道相关
location
= / {
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
= /
woman
{
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
= /
kids
{
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
= /
lifestyle
{
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
^~ /
common
{
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
;
proxy_pass
http
://
yohobuy
-
old
-
new
;
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
=/
favicon
.
ico
{
expires
30
d
;
}
location
=/
crossdomain
.
xml
{
expires
30
d
;
}
location
=/
robots
.
txt
{
expires
1
d
;
}
}
...
...
Please
register
or
login
to post a comment