lumen 部署在nginx 子目录下配置 IDC增强版 

今天吃完饭回来就在想上午的那个方案虽然可行,但是有个弊端。

就是每上一个新版本,除了上传新版本文件夹之外 还得编辑下 nginx vhost 配置,新增一个虚拟主机。

说麻烦虽然不麻烦 不过也挺烦人的。没有做到自适应,需要人工干预。

所以又折腾了一下。

配置如下:

server {
listen 80;
server_name haha.17ping.cn;
root /data/www/sdkHoster;

location / {
index index.php index.htm index.html;
autoindex on;
}

location ~ /([\w\d_]+)/([\w/]*)$ {
index index.php index.htm index.html;
try_files $uri $uri/ /$1/public/index.php?$query_string;
#return 500 $1;
}

# location /sdk1_0 {
# root /data/www/sdkHoster;
# index index.php index.htm index.html;
# try_files $uri $uri/ /sdk1_0/public/index.php?$query_string;
# }

# location /sdk1_1 {
# root /data/www/sdkHoster;
# index index.php index.htm index.html;
# try_files $uri $uri/ /sdk1_1/public/index.php?$query_string;
# }

location ~ \.php$ {
set $newurl $request_uri;
if ($newurl ~ ^/sdk([\d_]+)(.*)$) {
set $newurl $2;
}
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
include fastcgi_params;
fastcgi_param REQUEST_URI $newurl;
}

location ~ \.(css|js|swf|php|htm|html)$ {
add_header Cache-Control no-store;
}

location ~ /\.ht {
deny all;
}
}


保存,重载配置。

手动复制了一份 sdk1_2 目录,重命名为sdk1_2.
访问 http://haha.17ping.cn/sdk1_2/ 成功,美滋滋。

注:本文撰写实践时参考了一下文章:
https://serverfault.com/questions/826663/nginx-location-regex-variable-not-working-with-try-file
https://stackoverflow.com/questions/33890599/nginx-match-location-with-regex
https://superuser.com/questions/330194/how-to-i-get-variables-from-location-in-nginx
http://nginx.org/en/docs/http/ngx_http_ ... l#location
http://nginx.org/en/docs/http/ngx_http_ ... log_format
http://nginx.org/en/docs/http/ngx_http_ ... tml#return
https://regex101.com/
Michael Kors 

Coach Factory Store
Coach Factory Outlet Online Store
Michael Kors Outlet
Michael Kors Sale
Michael Kors Outlet Online Sale
Michael Kors Outlet Online
Michael Kors
Michael Kors Handbags
Michael Kors Purses
Michael Kors Bags
Nike Air Max 2015
Nike Air Max Outlet
Fitflops On Sale
Fitflops Sale
Nike Free
Nike Free 3.0
Kobe 11 Shoes
Kobe 11
Kobe 11 Elite
Kobe Shoes
Fitflop Sale
Fitflop Sandals
Christian Louboutin Sale
Christian Louboutin Shoes On Sale
Christian Louboutin Shoes
Christian Louboutin
Cheap Jordans
Cheap Jordans for Sale
Jordans for Sale
Cheap Jordan Shoes
New Jordans 2016
Jordan Shoes For Sale
Red Bottom Shoes
Red Bottom Shoes For Women
Red Bottom Shoes Christian Louboutin
Red Bottoms Shoes On Sale
Nike VaporMax
Nike Air Max
Nike Air Max 2017
Nike VaporMax Flyknit
Air Max 90
Nike Air Max 2016
Nike Shoes 2017
New Nike Shoes 2017
Kobe AD
Kobe Shoes
Kobe A.D. Shoes
Kobe AD Shoes
Eqt Adidas
Adidas Eqt
Adidas Eqt Boost
Adidas Eqt Support 93/17
James Harden Shoes
Harden Shoes
Adidas Harden Vol 1
Harden Vol 1 Shoes
KD 9
KD Shoes
KD 9 Shoes
Kevin Durant Shoes
kyrie irving shoes
Kyrie Shoes
Kyrie 3
Kyrie 3 Shoes
Kyrie 3 BHM
Kyrie 3 Samurai
Lebron 14
Lebron Shoes
Lebron 14 Low
LeBron Ambassador 9
NBA Store
Basketball Shoes
NBA Stars Shoes
Curry Shoes
NBA Shoes
Lebron Shose
Curry 3
Curry 2
Nike Flyknit Racer
Nike Flyknit
Nike Flyknit Lunar 3
Nike Flyknit 4.0
Nike Outlet
Nike Store
Nike Outlet Store
Nike Factory
Jordan Shoes
Cheap Jordans
Nike Air Max
Nike Shoes 2017
Curry 4 Low
KD 10 Still KD
Kevin Durant Shoes
Stephen Curry Shoes
KD 10 Oreo
Cheap KD 10
KD 10
Warriors Store
KD 10 Shoes
Curry 4 Shoes
Curry 4
Curry 3
Cheap NBA Jerseys
Custom NBA Jerseys
Kevin Durant Jerseys
NBA Jerseys
Stephen Curry Jerseys
Golden State Warriors Jerseys
Klay Thompson Jerseys
Warriors Jerseys
Curry 3 Shoes
Curry 4 Shoes
Curry Shoes
Curry 2
Curry Lux
Curry 1
Cheap Ray Bans
Ray Ban Sale
Ray Bans On Sale
Ray Ban Sunglasses Sale
Cheap Ray Ban Sunglasses Sale
Ray Ban Wholesale
Ray Ban Sunglasses Cheap
Ray Ban Sunglasses Outlet
Coach Outlet
Coach Outlet Online
Coach Purses
Coach Handbags
Coach Factory Outlet
Coach Factory
Coach Outlet Store Online
Coach Outlet Stores
Coach Bags Outlet
Coach Bags On Sale
Coach Purses Outlet Online
Coach Purses Cheap
Michael Kors Outlet
Michael Kors
Michael Kors Bags
Michael Kors Handbags
Michael Kors Outlet Online
Michael Kors Purses
Michael Kors Outlet Clearance
Michael Kors Outlet Store
Michael Kors Purses On Sale
Michael Kors Handbags Outlet
Longchamp
Longchamp Bag
Longchamp Sale
Longchamp Outlet
Longchamp Outlet Store
Longchamp Bags Outlet
Coach Handbags
Coach Outlet
Coach Outlet Online Coach Factory Outlet
Coach Outlet Handbags

king 

cc0314
pandora charms
coach outlet online
adidas store
ugg canada
the north face outlet
ugg outlet online
ralph lauren uk
kate spade outlet store
michael kors outlet clearance
adidas outlet online
jordan shoes for sale
nba jerseys cheap
timberland outlet
ugg boots outlet
christian louboutin shoes
fitflops sale clearance
air max
oakley sunglasses outlet
birkenstock uk
canada goose
fred perry polo shirts
coach outlet store online
coach factory outlet online
kate spade outlet online
cheap air jordans
louboutin outlet
michael kors outlet
ugg boots
michael kors outlet online
cheap jordan shoes
kate spade handbags
adidas yeezy
michael kors outlet store
coach outlet online
moncler outlet online
vans outlet
kate spade handbags
fitflop sandals
adidas yeezy boost
cheap jordan shoes
prada outlet online
cheap air jordans
ugg outlet store
coach factory outlet online
michael kors
ugg boots
longchamp outlet store
coach factory outlet online
canada goose jackets
michael kors
canada goose jackets
coach outlet online
coach outlet store online clearance
adidas yeezy boost
retro 11
michael kors bags
louis vuitton outlet store
moncler uk
yeezy boost 350
michael kors handbags
coach outlet online
adidas outlet online
pandora jewelry
ferragamo outlet
ray ban sunglasses outlet
pandora charms
air jordans
polo ralph lauren outlet
coach factorty outlet store
uggs outlet
hermes outlet
air max 90
nike shoes
pandora charms outlet
pandora rings
cheap jordans
pandora jewelry
canada goose jackets
uggs on sale
polo ralph lauren outlet
discount ray ban sunglasses
coach outlet canada
red bottom
adidas outlet store
coach outlet online
gucci outlet
adidas campus shoes
polo ralph lauren outlet online
pandora outlet
pandora jewelry outlet
birkin handbags
cheap ray ban sunglasses
reebok outlet
red bottoms
polo ralph lauren outlet
harden vol 1
coach factory outlet online
coach outlet store online
kate spade outlet
adidas superstar shoes
nike sneakers
canada goose jackets
cheap nfl jerseys wholesale
moncler outlet online
pandora sale clearance
canada goose jackets
air jordan retro
nike outlet
coach outlet store
pandora jewelry store
nike outlet online
michael kors outlet store
michael kors outlet store
canada goose outlet online
valentino outlet
moncler jackets
coach outlet online
coach outlet online
cheap ugg boots
hermes bags
nike outlet online
bottes ugg
canada goose coats
burberry outlet
pandora charms sale clearance
ralph lauren outlet
pandora uk
canada goose jackets
pandora jewelry outlet
mbt shoes sale
adidas shoes
ralph lauren
michael kors outlet clearance
coach outlet online
puma outlet
fred perry shirts
canada goose coats
nfl jerseys
burberry outlet online
michael kors
michael kors outlet online
nike air max 2018
ugg boots
canada goose jackets
canada goose jackets
coach factory outlet online
canada goose
coach factory outlet online
hermes bags
canada goose sale
michael kors outlet
nike outlet store
columbia sportswear outlet
coach outlet store online
cheap air max
ralph lauren outlet online
fitflops sale clearance
yeezy shoes
converse outlet
ralph lauren sale
mbt
cheap nfl jerseys wholesale
kate spade outlet online
kate spade outlet online
timberland outlet store
coach outlet online
pandora jewelry
adidas superstars
moncler coats
ecco outlet
ugg outlet
supra for sale
kate spade outlet
christian louboutin shoes
adidas nmd r1
canada goose coats
tory burch outlet online
michael kors outlet store
polo ralph lauren
tory burch shoes
coach factory outlet
mulberry uk
michael kors outlet store
longchamps
polo ralph lauren outlet online
yeezy boost 350
mulberry handbags
supreme clothing
yeezy shoes
moncler coats
christian louboutin sale
michael kors outlet clearance
coach factory outlet
canada goose
moncler outlet online
uggs outlet
birkenstock outlet
ugg canada
birkenstock shoes outlet
mcm outlet store
ugg boots
cheap oakley sunglasses
prada shoes
adidas outlet store
philipp plein outlet
canada goose jackets
ralph lauren outlet online
ecco shoes for women
fitflops sale
fitflop sandals
supreme shirts
cheap jordans
polo ralph lauren
pandora charms
nike air max 97
burberry handbags
moncler
air jordan shoes
asics outlet
michael kors outlet canada
mbt
canada goose jackets
coach outlet online
adidas originals
michael kors bags
coach factory outlet
air max
rolex replica watches
ugg boots
ralph lauren uk
ralph lauren outlet online
ugg outlet store
ralph lauren
ray ban glasses
michael kors outlet online
ugg boots
coach outlet online
timberland outlet
ralph lauren sale
adidas nmd r1
pandora charms sale clearance
jordans
canada goose jackets
moncler sale
air max shoes
coach factory outlet online
adidas nmd r1
yeezy boost
nike outlet online
cheap jordans for sale
pandora charms outlet
birkenstock outlet store
valentino
cheap ugg boots
michael kors
moncler outlet online
yeezy boost 350
ugg boots women
burberry handbags
polo ralph lauren
adidas nmd r1
vans outlet store
moncler pas cher
tory burch outlet store
supreme uk
canada goose jackets
philipp plein
coach outlet online
burberry outlet online
pandora charms
coach outlet online
birkenstock sale
michael kors outlet store
coach outlet online
mulberry
adidas yeezy
longchamp bags
adidas yeezy boost
adidas sneakers
ugg boots
coach outlet online
ray bans
the north face jackets
fitflop shoes
birkenstock outlet
uggs outlet
pandora charms outlet
canada goose coats
polo ralph lauren outlet online
pandora uk
cheap jordans free shipping
yeezy boost 350
adidas nmd runner
ralph lauren uk
nmd adidas
ugg outlet
oakley sunglasses for women
ferragamo shoes
michael kors outlet canada
pandora charms outlet
fitflops sale
canada goose jacket
adidas ultra boost
canada goose jackets uk
moncler coats
canada goose jackets
canada goose parka
pandora charms sale
coach outlet online
cheap jordan shoes
ralph lauren outlet online
new balance outlet
canada goose
cheap oakley sunglasses
longchamp sale
canada goose sale
caterpillar boots
ugg outlet online
gucci outlet online
coach factory outlet online
hermens
kate spade handbags
mcm bags
coach outlet online
nike sneakers
tory burch handbags
adidas outlet
coach outlet online
nba jerseys wholesale
oakley sunglasses outlet
nike air max 97
louboutin outlet
ray ban sunglasses discount
birkenstock uk
birkenstock sale
cheap jordan shoes
air max outlet
ugg boots outlet
cheap jordan shoes
ray ban sunglasses sale
mlb jerseys
cheap nike shoes
adidas
pandora charms sale clearance
christian louboutin shoes
polo ralph lauren outlet
nike outlet store
ugg boots sale
louis vuitton outlet
new balance outlet store
nike zoom
kate spade outlet online
discount oakley sunglasses
moncler uk
birkenstock shoes
mulberry outlet uk
louis vuitton factory outlet
michael kors outlet online
louis vuitton factory outlet
canada goose outlet
coach outlet store
fitflops sale
yeezy shoes
nfl jerseys
moncler jacket
coach outlet store online
birkenstock sandals
canada goose sale
mlb jerseys cheap
cheap air jordans
north face outlet
uggs outlet
hermes bag
supra for sale
pandora jewelry
canada goose jackets
oakley sunglasses outlet
coach factorty outlet online
michael kors
coach factory outlet online
rolex replica watches for sale
moncler jackets
michael kors uk
coach factory outlet
canada goose coats
cheap ray ban sunglasses
adidas yeezy shoes
canada goose jackets
pandora charms sale
mlb jerseys wholesale
salvatore ferragamo outlet
cheap oakley sunglasses
uggs
adidas yeezy boost 350
skechers outlet
louis vuitton handbags
michael kors outlet online
ugg sale
supreme shirts
ralph lauren outlet
coach factory outlet online
hermes handbags
moncler jackets
coach outlet
coach outlet store online
cheap jordan shoes
timberland boots
pandora outlet
nike air max 2018
coach outlet store
converse all star
coach outlet canada
oakley sunglasses outlet
nike outlet store online
polo ralph lauren outlet online
louis vuitton outlet online
coach factorty outlet online
canada goose sale
canada goose coats
canada goose sale
canada goose jackets
red bottom heels
mlb jerseys cheap
salvatore ferragamo shoes
ralph lauren uk
adidas nmd runner
canada goose outlet store
ralph lauren
coach factory outlet
pandora charms sale clearance
michael kors outlet online
coach factory outlet online
canada goose
nfl jerseys
moncler sale
cheap oakley sunglasses
louboutin shoes
coach outlet online
longchamp bags
longchamp outlet
ralph lauren outlet online
jordan shoes
cc0314

评论

发表评论

填写下面的表单来发表您的评论。









插入标签: