New gateway configuration for virtualhosts http
Examples with curl: view/change the configuration
This commit is contained in:
parent
2359b2bb19
commit
296dffc599
@ -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>
|
||||
|
||||
########################
|
||||
|
2
protocol_1.0/live_config.txt
Normal file
2
protocol_1.0/live_config.txt
Normal 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'
|
Loading…
x
Reference in New Issue
Block a user