From 296dffc59974efbfaf09899168dfc96c59528ade Mon Sep 17 00:00:00 2001 From: Massimiliano Pinto Date: Tue, 16 Apr 2013 09:31:56 +0200 Subject: [PATCH] New gateway configuration for virtualhosts http Examples with curl: view/change the configuration --- protocol_1.0/gateway.conf | 22 +++++++++++----------- protocol_1.0/live_config.txt | 2 ++ 2 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 protocol_1.0/live_config.txt diff --git a/protocol_1.0/gateway.conf b/protocol_1.0/gateway.conf index b64112dc7..23caa6041 100644 --- a/protocol_1.0/gateway.conf +++ b/protocol_1.0/gateway.conf @@ -1,27 +1,27 @@ #Apache 2.4.2 configuration - +######################## +# The Mysql protocol enabled in the main server +# AcceptFilter http httpready AcceptFilter mysqld none LoadModule skysql_module modules/mod_skysql.so Listen 4402 mysqld -Listen 81 http - - -SetHandler skysql Timeout 300 SkySQLProtocol On SkySQLPool Off -#Examples for slave servers load balancing -#SkySQLSingleDBbresource "default" "127.0.0.1:3306;test" -SkySQLSingleDBbresource "mysql" "127.0.0.1:3306;test" -SkySQLSingleDBbresource "mariadb" "127.0.0.1:3307;test" -#SkySQLSingleDBbresource "loadbal" "192.168.1.153:3306,127.0.0.1:3306,192.168.1.151:3306,192.168.1.152:3306;test" -SkySQLSingleDBbresource "loadbal" "127.0.0.1:3306;test" +SkySQLSingleDBbresource "Master/Slaves" "127.0.0.1:3306,127.0.0.1:3307,127.0.0.1:3308;test" SkySQLTimeout 300 + +## HTTP on port 81, in this virtual host +SkySQLProtocol Off + + SetHandler skysql + +######################## diff --git a/protocol_1.0/live_config.txt b/protocol_1.0/live_config.txt new file mode 100644 index 000000000..748772c70 --- /dev/null +++ b/protocol_1.0/live_config.txt @@ -0,0 +1,2 @@ +curl 'http://127.0.0.1:81/skycc?show=1' +curl 'http://127.0.0.1:81/skycc?update=127.0.0.1:3306,127.0.0.1:3307,127.0.0.1:3308'