V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  LazyZhu  ›  全部回复第 87 页 / 共 88 页
回复总数  1753
1 ... 79  80  81  82  83  84  85  86  87  88  
2013-01-30 14:45:38 +08:00
回复了 Kymair 创建的主题 NGINX 怎样用LDAP(AD)来认证Nginx的proxy_pass?
@BOYPT "nginx作为一个固化系统,是很难做到灵活的"
这话说明你根本不懂nginx

example: http://uimeet.com/imdb-api-release/
2013-01-26 20:45:59 +08:00
回复了 LazyZhu 创建的主题 程序员 github 部分服务器的SSL挂了
好像好了 -_-!
2013-01-25 18:48:18 +08:00
回复了 jiangplus 创建的主题 程序员 Google Analytics脚本究竟干了些什么
2013-01-09 19:37:55 +08:00
回复了 adspe 创建的主题 程序员 你们怎么看待Lua这门语言。
@clowwindy
特别是 luajit2 的出现后 :)
2013-01-02 21:44:44 +08:00
回复了 ericyue 创建的主题 Linux 如何共享一个makefile?
用 `ln` 硬链接
2013-01-02 21:22:12 +08:00
回复了 apptao 创建的主题 酷工作 北京诚聘OpenResty/Lua工程师(5k-20k)
2013-01-02 12:35:10 +08:00
回复了 MajestySolor 创建的主题 问与答 求推荐个监视统计上传下载流量的小巧软件
2012-12-30 19:16:45 +08:00
回复了 wenbinwu 创建的主题 Django 用Django做一个短域名服务,需要注意什么
@shiny 试试“七夜”改的 https://github.com/qiye/redis-storage
redis-storage 给 redis 增加了 leveldb 服务端的功能
2012-12-30 10:35:40 +08:00
回复了 wenbinwu 创建的主题 Django 用Django做一个短域名服务,需要注意什么
A hint: https://github.com/AlexChittock/SimpleShortener

可能没有比这更「快」的了
2012-12-22 17:26:34 +08:00
回复了 Livid 创建的主题 JavaScript CDNJS on ORCA
@Livid 没有 [Highstock.js](http://www.highcharts.com/products/highstock "Highstock.js").
2012-12-06 19:09:38 +08:00
回复了 liuhk388 创建的主题 V2EX 打开帖子 /t/52517 错误
@liuhk388 我也遇到过,等几分钟会好的,不知什么原因
@Livid
@kenneth 可行就好,至于这种方法好不好,在生产中检验下吧。

@2code 能在webserver层解决的问题不要放在后面的应用层。
@kenneth

lua 里面你可以任意扩展的
写了个简单的示例,看看是不是你要的

server {
server_name ~^(.+)\.byvee\.com$;
set $subdomain $1;
location / {
rewrite_by_lua '
ngx.ctx.user = ngx.var.subdomain
if ngx.ctx.user == "1" then
ngx.ctx.user = lazyzhu
local url = ngx.ctx.user .. ".byvee.com"
return ngx.redirect("http://url/", 301)
end
';
content_by_lua '
local user = "user:" .. ngx.ctx.user
ngx.say(user)
';
}

test:

1.byvee.com
2.byvee.com
.....
@kenneth

rewrite啊,想怎样就怎样

server {
server_name ~^(.+)\.domain\.com$;
rewrite ^ domain.com/u/$1;
}
@kenneth

nginx中很简单,可以
server {
server_name ~^(.+)\.domain\.com$;
root /path/to/data/$1;
}
2012-11-30 20:05:18 +08:00
回复了 Eyon 创建的主题 PHP 某些网站用的 xxx.com/go=xxxxxx 这种地址跳转方式是用什么实现的?
nginx

location / {
if ( $query_string ~* "go=.*$" ) {
return 302 $arg_go;
}
}

test:
http://198.74.110.195/?go=http://www.v2ex.com/
2012-11-28 18:27:11 +08:00
回复了 luckyduck 创建的主题 Python 有人对wheezy熟悉嘛?
我只知道是Debian7
2012-11-27 18:05:56 +08:00
回复了 shanyang 创建的主题 NGINX nginx的subs_filter模块怎么替换正则阿
@jylee 你在说你自己吗?
1 ... 79  80  81  82  83  84  85  86  87  88  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2715 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 46ms · UTC 13:39 · PVG 21:39 · LAX 06:39 · JFK 09:39
Developed with CodeLauncher
♥ Do have faith in what you're doing.