yaoweibin / nginx_ajp_module

support AJP protocol proxy with Nginx
http://github.com/yaoweibin/nginx_ajp_module
246 stars 59 forks source link

Tengine上打不到ajp.patch #18

Closed higkoo closed 10 years ago

higkoo commented 10 years ago

求解决!

yaoweibin commented 10 years ago

周末我来整整,这个模块要好好更新下了。

higkoo commented 10 years ago

好期待 ⊙▽⊙

非常感谢!

发自我的米2 2014-2-13 下午6:23于 "Weibin Yao(姚伟斌)" notifications@github.com写道:

周末我来整整,这个模块要好好更新下了。

— Reply to this email directly or view it on GitHubhttps://github.com/yaoweibin/nginx_ajp_module/issues/18#issuecomment-34965355 .

yaoweibin commented 10 years ago

好了,试试最新的master分支,我把ajp.patch去掉了。jvm_route模块修改了太多的代码,我把它移除了,如果你要用session sticky功能,可以用jvm_route模块:http://code.google.com/p/nginx-upstream-jvm-route/

higkoo commented 10 years ago

伟斌,你好! 测试了Master版本和0.3.0版本,都出现‘ 'ngx_http_connection_t' has no member named 'ssl'’的错误,求指点:

nginx_ajp_module-master/ngx_http_ajp.c: In function 'ajp_marshal_into_msgb': nginx_ajp_module-master/ngx_http_ajp.c:391: error: 'ngx_http_connection_t' has no member named 'ssl' make: *\ [objs/src/nginx_ajp_module-master/ngx_http_ajp.o] Error 1

2014-02-15 22:02 GMT+08:00 Weibin Yao(姚伟斌) notifications@github.com:

Closed #18 https://github.com/yaoweibin/nginx_ajp_module/issues/18.

— Reply to this email directly or view it on GitHubhttps://github.com/yaoweibin/nginx_ajp_module/issues/18 .

higkoo commented 10 years ago

另外,http_upstream_session_sticky_module 已经集成到Tengine里啦!

yaoweibin commented 10 years ago

你的编译选项是什么?

higkoo commented 10 years ago
yaoweibin commented 10 years ago

最好是使用tengine-2.0版本来打包。我怀疑是你的~/rpmbuild/BUILD/tengine-1.5.2目录的源代码是用没有加上--with-http_ssl_module选项的configure脚本编译的。

higkoo commented 10 years ago

我刚开始也有这个怀疑,不过确认系统是有安装openssl和openssl-devel的。 --with-http_ssl_module参数刚刚configure参数里是有的啦,dso_tool是即时编译生成的。

Tengine-2.0刚出来的时候,部署到生产环境时,upstream的检测有问题,后来就回退到1.5.2了。 明天拿2.0试下再上来汇报 :)

yaoweibin commented 10 years ago

我们马上会发布2.0.1,已经修复健康检查长连接的问题了。 你看下~/rpmbuild/BUILD/tengine-1.5.2/objs/ngx_auto_config.h里面有没有NGX_HTTP_SSL这个宏,值是多少?

higkoo commented 10 years ago

tengine-1.5.2/objs/ngx_auto_config.h 对应区域:

ifndef NGX_HTTP_SSL

define NGX_HTTP_SSL 1

endif

tengine-1.5.2/objs/dso_tool 对应区域: ngx_include_opt='-I ' ngx_binout='-o ' NGX_DSO_PATH=/usr/lib64/tengine/modules NGX_AUTOCONF_ERR=objs/autoconf.err NGX_AUTOTEST=objs/autotest NGX_AUTO_CONFIG_H=objs/ngx_auto_config.h NGX_CONFIGURE=" --prefix=/usr/share/tengine --sbin-path=/usr/sbin/tengine --dso-tool-path=/usr/sbin/dso_tool --dso-path=/usr/lib64/tengine/modules --conf-path=/etc/tengine/tengine.conf --error-log-path=/data/log/tengine/error.log --http-log-path=/data/log/tengine/access.log --http-client-body-temp-path=/data/log/tengine/tmp/client_body --http-proxy-temp-path=/data/log/tengine/tmp/proxy --http-fastcgi-temp-path=/data/log/tengine/tmp/fastcgi --http-uwsgi-temp-path=/data/log/tengine/tmp/uwsgi --http-scgi-temp-path=/data/log/tengine/tmp/scgi --pid-path=/var/run/tengine.pid --lock-path=/var/lock/subsys/tengine --user=nobody --group=nobody --with-http_ssl_module --with-http_stub_status_module --with-jemalloc --with-http_realip_module --with-http_addition_module=shared --with-http_xslt_module=shared --with-http_image_filter_module=shared --with-http_geoip_module=shared --with-http_sub_module=shared --with-http_flv_module=shared --with-http_slice_module=shared --with-http_mp4_module=shared --with-http_concat_module=shared --with-http_random_index_module=shared --with-http_secure_link_module=shared --with-http_sysguard_module=shared --with-http_userid_filter_module=shared --with-http_footer_filter_module=shared --with-http_trim_filter_module=shared --with-http_map_module=shared --with-http_split_clients_module=shared --with-http_uwsgi_module=shared --with-http_scgi_module=shared --with-http_memcached_module=shared --with-http_limit_conn_module=shared --with-http_limit_req_module=shared --with-http_empty_gif_module=shared --with-http_browser_module=shared --with-http_user_agent_module=shared --with-http_upstream_ip_hash_module=shared --with-http_upstream_least_conn_module=shared --with-http_upstream_session_sticky_module=shared --with-http_lua_module=shared --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --with-ld-opt=-Wl,-E"

higkoo commented 10 years ago

nginx_ajp_module-0.3.0/config: line 15: auto/define: No such file or directory

higkoo

higkoo commented 10 years ago

文件是存在的,内容也是正常的,不知道为什么还报这个错误。 $ pwd /data/hukai/rpmbuild/BUILD/tengine-ajp-0.3.0/tengine-2.0.0 $ file auto/define auto/define: ASCII text $ sh /data/hukai/rpmbuild/BUILD/tengine-ajp-0.3.0/tengine-2.0.0/objs/dso_tool --dst=/data/hukai/rpmbuild/BUILDROOT/tengine-ajp-0.3.0-1.el6.x86_64/usr/lib64/tengine/modules --nginx-include=/data/hukai/rpmbuild/BUILD/tengine-ajp-0.3.0/tengine-2.0.0 --add-module=/data/hukai/rpmbuild/BUILD/tengine-ajp-0.3.0/nginx_ajp_module-0.3.0 configuring additional modules adding module in /data/hukai/rpmbuild/BUILD/tengine-ajp-0.3.0/nginx_ajp_module-0.3.0 checking for nginx_ajp_module ... found /data/hukai/rpmbuild/BUILD/tengine-ajp-0.3.0/nginx_ajp_module-0.3.0/config: line 15: auto/define: No such file or directory

higkoo commented 10 years ago

higkoo sent you an invitation

Twitter helps you stay connected with what's happening right now and with the people and organizations you care about.

Accept invitation

https://twitter.com/i/a4baada4-f760-46e4-a513-446d0d572028

You can unsubscribe from receiving email notifications from Twitter at anytime. For general inquiries, please visit us at Twitter Support. Unsubscribe: https://twitter.com/i/o?t=1&iid=cd4ab16290ea42d0af9f951a996b7c3d&uid=0&c=IuVwbCB3dgGBIumj3wE7v5nrK0YgMi7fY572e5XZPpaDsyDRcXOF3OMme%2BQ4nUCrF9qBNhQ1t5RMyJaKzmHFZFrxWn%2Bdk81F5PddXF9%2FaztQiAaeR2l5tQ%3D%3D&nid=9+26

Need help? https://support.twitter.com