Authored by chunhua.zhang

add

... ... @@ -34,7 +34,7 @@ function generate_short_url()
return
end
-- use http or https
local full_short_uri= (schema == 'https') and ("https://s.yoho.cn/" .. short_uri) or ("http://s.yoho.cn/" .. short_uri )
local full_short_uri= (schema == 'https') and ("https://yhurl.com/" .. short_uri) or ("http://yhurl.com/" .. short_uri )
return full_short_uri
end
end
... ...
## generate short url and redirect short url
server {
listen 80 ;
server_name s.yoho.cn ;
server_name yhurl.com ;
access_log /Data/logs/nginx/s.yoho.cn.log fenxi;
error_log /Data/logs/nginx/s.yoho.cn_error.log;
access_log /Data/logs/nginx/yhurl.com_access.log fenxi;
error_log /Data/logs/nginx/yhurl.com_error.log;
#generate short url
location = /gs {
... ...