New gateway configuration for virtualhosts http

Examples with curl: view/change the configuration
This commit is contained in:
Massimiliano Pinto 2013-04-16 09:31:56 +02:00
parent 2359b2bb19
commit 296dffc599
2 changed files with 13 additions and 11 deletions

View File

@ -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
<VirtualHost *:4402>
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
<VirtualHost *:81>
## HTTP on port 81, in this virtual host
SkySQLProtocol Off
<Location /skycc>
SetHandler skysql
</Location>
</VirtualHost>
########################

View File

@ -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'