zeus

How can I rewrite URLs in the Zeus web server for Mobile useragent?

匆匆过客 提交于 2019-12-06 01:44:04
I need to redirect anyone with a mobile user agent to a file called mobile.php. My web hosting provider, Net Registry uses the Zeus web server. Here's the script I've written from my research RULE_1_START: # get the document root map path into SCRATCH:DOCROOT from / match IN:User-Agent into $ with iPad|iPod|iPhone|Android|s+Mobile if matched then set OUT:Location = /mobile.php endif RULE_1_END: I used the instructions on my host's site . I pasted that into their console and it has worked to do redirects. Net registry have some odd console thing that you submit and it takes 10 minutes to update

Cucumber and RSpec testing with zeus: Postgres is being accessed by other users

旧城冷巷雨未停 提交于 2019-12-04 20:21:59
In my Rails 3.2.13 app, I'm using Zeus. In the test environment I use PostgreSQL. When I run Cucumber and then RSpec (or the other way around), 9 out of 10 times I get the message: PG::Error: ERROR: database "bp_test" is being accessed by other users DETAIL: There are 1 other session(s) using the database. : DROP DATABASE IF EXISTS "bp_test" Tasks: TOP => db:test:load => db:test:purge (See full trace by running task with --trace) It takes a whole non-deterministic circus of trying to kill database connections to get this to work again, as described here . But this does not always work and is a

zeus rspec fails include required files, but rspec alone does fine

Deadly 提交于 2019-12-03 13:16:25
It's weird issue, zeus start running smoothly. rspec spec/ does it's job flawless. My spec_helper config is # encoding: UTF-8 require 'rubygems' # This file is copied to spec/ when you run 'rails generate rspec:install' ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../../config/environment", __FILE__) require 'rspec/rails' require 'email_spec' require 'rspec/autorun' require 'capybara/rspec' require 'shoulda-matchers' require 'shoulda/matchers/integrations/rspec' Dir["./spec/support/**/*.rb"].sort.each {|f| require f} RSpec.configure do |config| config.include FactoryGirl::Syntax:

Mosquitto 上建立到 EMQ X 的桥接

隐身守侯 提交于 2019-12-01 14:27:56
EMQ X 节点可以被其他类型的 MQTT 消息中间件桥接,实现跨平台的消息订阅和发送。本文我们以一个配置实例来说明如何配置 Mosquitto 到 EMQ X 的桥接。 Mosquitto 是一个小型轻量的开源 MQTT Broker,由 C/C++ 语言编写。Mosquitto 采用单核心单线程架构,支持部署在资源有限的嵌入式设备,接入少量 MQTT 设备终端,并实现了 MQTT 5.0 和 3.1.1版本协议。 EMQ X 与 Mosquitto 均完整支持了 MQTT 协议特性,但 EMQ X 支持更多通信协议以及私有协议接入。应用层的功能拓展方面,Mosquitto 缺乏开箱即用的如认证鉴权、规则引擎、数据持久化与高性能消息桥接(EMQ X 企业版)等业务相关功能; 监控运维与可视化管理方面, EMQ X 有完整的现有功能和拓展方案支持;基础功能上 Mosquitto 集群功能羸弱,官方和第三方实现的集群方案均难以支撑物联网大规模海量连接的性能需求。 因此 Mosquitto 并不适合用来做规模化服务的 MQTT Broker,但由于其足够轻量精简,可以运行在任何低功率单片机包括嵌入式传感器、手机设备、嵌入式微处理器上,是物联网边缘消息接入较好的技术选型,结合其桥接功能可以实现消息的本地处理与云端透传。 场景描述 假设我们有一个 EMQ X 服务器集群 emqx1

Mosquitto 上建立到 EMQ X 的桥接

旧巷老猫 提交于 2019-11-28 19:43:43
EMQ X 节点可以被其他类型的 MQTT 消息中间件桥接,实现跨平台的消息订阅和发送。本文我们以一个配置实例来说明如何配置 Mosquitto 到 EMQ X 的桥接。 Mosquitto 是一个小型轻量的开源 MQTT Broker,由 C/C++ 语言编写。Mosquitto 采用单核心单线程架构,支持部署在资源有限的嵌入式设备,接入少量 MQTT 设备终端,并实现了 MQTT 5.0 和 3.1.1版本协议。 EMQ X 与 Mosquitto 均完整支持了 MQTT 协议特性,但 EMQ X 支持更多通信协议以及私有协议接入。应用层的功能拓展方面,Mosquitto 缺乏开箱即用的如认证鉴权、规则引擎、数据持久化与高性能消息桥接(EMQ X 企业版)等业务相关功能; 监控运维与可视化管理方面, EMQ X 有完整的现有功能和拓展方案支持;基础功能上 Mosquitto 集群功能羸弱,官方和第三方实现的集群方案均难以支撑物联网大规模海量连接的性能需求。 因此 Mosquitto 并不适合用来做规模化服务的 MQTT Broker,但由于其足够轻量精简,可以运行在任何低功率单片机包括嵌入式传感器、手机设备、嵌入式微处理器上,是物联网边缘消息接入较好的技术选型,结合其桥接功能可以实现消息的本地处理与云端透传。 场景描述 假设我们有一个 EMQ X 服务器集群 emqx1

Enable / disable session state per controller / action method

故事扮演 提交于 2019-11-27 08:38:55
We are building an ASP.NET MVC application which will be deployed behind a hardware load balancer that supports, among other things, caching. Our proposal is to manually define which URL patterns should be cached by the load balancer. This will be quite an easy process for us as we have 'catalogue' pages which are relatively static, then 'order' pages which are not. Must avoid using session state on cached pages, as the entire response is cached by the load balancer - this includes any cookies that are sent. Ideally there would be an attribute which can be applied to controllers or action

apache ab压力测试报错(apr_socket_recv: Connection reset by peer (104))

旧城冷巷雨未停 提交于 2019-11-27 05:14:04
apache ab压力测试报错(apr_socket_recv: Connection reset by peer (104)) apache ab压力测试报错(apr_socket_recv: Connection reset by peer (104)) 今天用apache 自带的ab工具测试,当并发量达到1000多的时候报错如下: [root@aa~]# This is ApacheBench, Version 2.3 <$Revision: 655654 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking 192.168.1.176 (be patient) Completed 300 requests Completed 600 requests Completed 900 requests apr_socket_recv: Connection reset by peer (104) Total of 1085 requests completed 查看应用服务器和数据库均未报错,连接被重置,bingyi了以下

Enable / disable session state per controller / action method

孤街醉人 提交于 2019-11-26 14:14:27
问题 We are building an ASP.NET MVC application which will be deployed behind a hardware load balancer that supports, among other things, caching. Our proposal is to manually define which URL patterns should be cached by the load balancer. This will be quite an easy process for us as we have 'catalogue' pages which are relatively static, then 'order' pages which are not. Must avoid using session state on cached pages, as the entire response is cached by the load balancer - this includes any