Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
梁志锋
9 years ago
Commit
0bf0ae841ef660c7c5608bb0785299368d01e9e2
1 parent
f17bf054
增加百度站长的验证文件
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
25 deletions
script/nginx/conf/vhost/production/location/yohobuypc_httpskey.conf
script/nginx/conf/vhost/production/location/yohobuypc_idc.conf
script/nginx/conf/vhost/production/yohobuypc.conf
script/nginx/conf/vhost/production/location/yohobuypc_httpskey.conf
View file @
0bf0ae8
ssl
on
;
ssl_dhparam
/
Data
/
local
/
nginx
-
1
.
8
.
0
/
conf
/
ssl
/
dhparam
.
pem
;
ssl_dhparam
/
Data
/
local
/
nginx
-
1
.
8
.
0
/
conf
/
ssl
/
pc
/
server
.
pem
;
ssl_prefer_server_ciphers
on
;
ssl_protocols
TLSv1
TLSv1
.
1
TLSv1
.
2
;
...
...
script/nginx/conf/vhost/production/location/yohobuypc_idc.conf
View file @
0bf0ae8
## old idc
location
= /
erp2goods
{
#location = /erp2goods {
# 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
^~ /
passport
/
auth
/
signin
{
proxy_redirect
off
;
proxy_pass
http
://
yohobuy
-
old
-
www
;
proxy_set_header
Host
$
host
;
...
...
@@ -9,16 +18,7 @@
proxy_set_header
Accept
-
Encoding
"gzip"
;
}
location
= /
passport
/
auth
/
signin
{
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
= /
live
/
index
{
location
^~ /
live
/
index
{
proxy_redirect
off
;
proxy_pass
http
://
yohobuy
-
old
-
www
;
proxy_set_header
Host
$
host
;
...
...
@@ -68,6 +68,15 @@
# return 301 http://item.yohobuy.com$request_uri;
# }
location
^~ /
product
/
pro_
{
proxy_redirect
off
;
proxy_pass
http
://
yohobuy
;
proxy_set_header
Host
item
.
yohobuy
.
com
;
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
^~ /
brands
/ {
rewrite
/
brands
/$
http
://
www
.
yohobuy
.
com
/
brands
permanent
;
}
...
...
script/nginx/conf/vhost/production/yohobuypc.conf
View file @
0bf0ae8
...
...
@@ -4,6 +4,7 @@ server
server_name
*.
yohobuy
.
com
;
root
/
Data
/
code
/
git
/
web
/
yohobuy
/
yohobuy
/
www
.
yohobuy
.
com
/
public
;
access_log
/
Data
/
logs
/
nginx
/
access_pc
.
yohobuy
.
com
.
log
fenxi
;
error_log
/
Data
/
logs
/
error
.
pc
.
yohobuy
.
com
.
log
warn
;
# static file
...
...
@@ -34,14 +35,12 @@ server
listen
443
;
server_name
*.
yohobuy
.
com
;
/
Data
/
local
/
nginx
-
1
.
8
.
0
/
conf
/
ssl
/
pc
/
server
.
key
/
Data
/
local
/
nginx
-
1
.
8
.
0
/
conf
/
ssl
/
pc
/
server
.
pem
crt
ssl_certificate
/
Data
/
local
/
nginx
-
1
.
8
.
0
/
conf
/
ssl
/
server
.
crt
;
ssl_certificate_key
/
Data
/
local
/
nginx
-
1
.
8
.
0
/
conf
/
ssl
/
server
.
key
;
ssl_certificate
/
Data
/
local
/
nginx
-
1
.
8
.
0
/
conf
/
ssl
/
pc
/
server
.
pem
;
ssl_certificate_key
/
Data
/
local
/
nginx
-
1
.
8
.
0
/
conf
/
ssl
/
pc
/
server
.
key
;
root
/
Data
/
code
/
git
/
web
/
yohobuy
/
yohobuy
/
www
.
yohobuy
.
com
/
public
;
access_log
/
Data
/
logs
/
nginx
/
access_pc
.
yohobuy
.
com
.
log
fenxi
;
error_log
/
Data
/
logs
/
error
.
pc
.
yohobuy
.
com
.
log
warn
;
# static file
...
...
@@ -57,13 +56,13 @@ server
return
301
https
://
www
.
yohobuy
.
com
/;
}
location
^~ /
resource
/
getbanner
{
rewrite
/
resource
/
getbanner
(.*)$
https
://
www
.
yohobuy
.
com
/
common
/
getbanner
$
1
permanent
;
}
location
^~ /
resource
/
getbanner
{
rewrite
/
resource
/
getbanner
(.*)$
https
://
www
.
yohobuy
.
com
/
common
/
getbanner
$
1
permanent
;
}
location
/ {
proxy_redirect
off
;
proxy_pass
http
://
yohobuy
_
pc
;
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
;
...
...
@@ -76,6 +75,7 @@ server
listen
80
;
server_name
admin
.
yohobuy
.
com
union
.
yohobuy
.
com
;
access_log
/
Data
/
logs
/
nginx
/
access_pc
.
yohobuy
.
com
.
log
fenxi
;
error_log
/
Data
/
logs
/
error_pc
.
yohobuy
.
com
.
log
warn
;
location
/ {
...
...
@@ -95,6 +95,9 @@ server
server_name
huodong
.
yohobuy
.
com
;
root
/
Data
/
code
/
git
/
web
/
yohobuy
/
yohobuy
/
huodong
.
yohobuy
.
com
/
public
;
access_log
/
Data
/
logs
/
nginx
/
access_pc
.
yohobuy
.
com
.
log
fenxi
;
error_log
/
Data
/
logs
/
error_pc
.
yohobuy
.
com
.
log
warn
;
location
^~ /
cuxiao
{
proxy_redirect
off
;
proxy_pass
http
://
yohobuy
-
pc
;
...
...
@@ -122,9 +125,11 @@ server
listen
443
;
server_name
huodong
.
yohobuy
.
com
;
ssl_certificate
/
Data
/
local
/
nginx
-
1
.
8
.
0
/
conf
/
ssl
/
server
.
crt
;
ssl_certificate_key
/
Data
/
local
/
nginx
-
1
.
8
.
0
/
conf
/
ssl
/
server
.
key
;
ssl_certificate
/
Data
/
local
/
nginx
-
1
.
8
.
0
/
conf
/
ssl
/
pc
/
server
.
pem
;
ssl_certificate_key
/
Data
/
local
/
nginx
-
1
.
8
.
0
/
conf
/
ssl
/
pc
/
server
.
key
;
access_log
/
Data
/
logs
/
nginx
/
access_pc
.
yohobuy
.
com
.
log
fenxi
;
error_log
/
Data
/
logs
/
error_pc
.
yohobuy
.
com
.
log
warn
;
root
/
Data
/
code
/
git
/
web
/
yohobuy
/
yohobuy
/
huodong
.
yohobuy
.
com
/
public
;
location
^~ /
cuxiao
{
...
...
@@ -155,8 +160,10 @@ server
listen
443
ssl
;
server_name
yohobuy
.
com
;
ssl_certificate
/
Data
/
local
/
nginx
-
1
.
8
.
0
/
conf
/
ssl
/
server
.
crt
;
ssl_certificate_key
/
Data
/
local
/
nginx
-
1
.
8
.
0
/
conf
/
ssl
/
server
.
key
;
ssl_certificate
/
Data
/
local
/
nginx
-
1
.
8
.
0
/
conf
/
ssl
/
pc
/
server
.
pem
;
ssl_certificate_key
/
Data
/
local
/
nginx
-
1
.
8
.
0
/
conf
/
ssl
/
pc
/
server
.
key
;
error_log
/
Data
/
logs
/
error_pc
.
yohobuy
.
com
.
log
warn
;
location
= / {
return
301
https
://
www
.
yohobuy
.
com
/;
...
...
Please
register
or
login
to post a comment