#httpd.conf or srm.conf PerlTransHandler Apache::MsqlProxy::translate PerlHandler Apache::MsqlProxy::handler PerlModule Apache::MsqlProxy
Configure your browser's HTTP proxy to point at the host running Apache configured with this module:
http://hostname.domain/
When connecting to the server via normal HTTP (not proxy), URLs are not translated.
URL's are translated as follows:
http://hostname/database_name/table_name
Connect to hostname via TCP, select database database_name, query table <table_name> with:
SELECT * from table_name
http://hostname/database_name/table_name?login_name=dougm
Same as above with query:
SELECT login_name from table where login_name=dougm
http://hostname/database_name/table_name/*?login_name=dougm
Same as above with query:
SELECT * from table where login_name=dougm
Of course,
http:///database_name/table_name
A null hostname connects via UNIX socket
http://hostname:9876/database_name/table_name
Connect via TCP to hostname and port 9876
It may not be very useful other than as an example, but feel free to change that.
Apache, Msql