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
hf
9 years ago
Commit
d33c412782f4ae642c9c2be7c01e30eeb68a917f
1 parent
aac9aa79
code review by fei.hong: do add couponxinshili huodong
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
9 deletions
library/Api/Yohobuy.php
script/nginx/conf/vhosts/nginx.rls.web.yohobuy.com.conf
library/Api/Yohobuy.php
View file @
d33c412
...
...
@@ -18,17 +18,17 @@ class Yohobuy
{
/* 正式环境 */
// php API
// const API_URL = 'http://api2.open.yohobuy.com/';
// const API_URL2 = 'http://api.open.yohobuy.com/';
// const SERVICE_URL = 'http://service.api.yohobuy.com/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
const
API_URL
=
'http://api2.open.yohobuy.com/'
;
const
API_URL2
=
'http://api.open.yohobuy.com/'
;
const
SERVICE_URL
=
'http://service.api.yohobuy.com/'
;
const
YOHOBUY_URL
=
'http://www.yohobuy.com/'
;
//java API
const
API_URL
=
'http://apih5.yoho.cn/'
;
const
API_URL2
=
'http://apih5.yoho.cn/'
;
const
SERVICE_URL
=
'http://serviceh5.yoho.cn/'
;
const
YOHOBUY_URL
=
'http://www.yohobuy.com/'
;
const
API_OLD
=
'http://api2.open.yohobuy.com/'
;
// const API_URL = 'http://apih5.yoho.cn/';
// const API_URL2 = 'http://apih5.yoho.cn/';
// const SERVICE_URL = 'http://serviceh5.yoho.cn/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
// const API_OLD = 'http://api2.open.yohobuy.com/';
/* 测试环境 */
// const API_URL = 'http://testapi.yoho.cn:28078/'; // 'http://192.168.102.205:8080/gateway/'
...
...
script/nginx/conf/vhosts/nginx.rls.web.yohobuy.com.conf
View file @
d33c412
...
...
@@ -203,3 +203,42 @@ server
}
}
server
{
listen
80
;
server_name
huodong
.
yohobuy
.
com
;
root
/
Data
/
PE
/
yohobuy_PC
/
yohobuy
/
huodong
.
yohobuy
.
com
/
public
;
location
^~ /
cuxiao
{
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
-
huodong
;
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
~* \.(
ico
|
woff
|
svg
|
eot
|
ttf
|
otf
)$ {
expires
30
d
;
}
location
=/
crossdomain
.
xml
{
expires
30
d
;
}
location
=/
sitemap
.
xml
{
expires
1
d
;
}
location
=/
robots
.
txt
{
expires
1
d
;
}
}
...
...
Please
register
or
login
to post a comment