-
Notifications
You must be signed in to change notification settings - Fork 15
OpcodeForwardAccelerator
Michael VERGOZ edited this page Jul 31, 2014
·
1 revision
The HTTP accelerator is used to hijack forward proxy requests to another server. It acts as the Squid HTTP accelerator.
- Version: 1.3
- Opcode type: Forward only
pipeline: {
pipetest: [
['accelerator', {
destination: '192.168.0.1:80',
matchHost: /.*\.test\.com/,
matchExecuter: function(request) {
return(false);
},
authBasic: {
user: 'test',
pass: 'ofhurvurue'
}
} ],
['store'],
['cache', { }],
['proxyPass', { mode: 'host', timeout: 10 }]
],
},
- destination: The destination server
- matchHost: If HTTP header host match server name then forward request
- matchExecuter: is a function use to match specific requests. If function returns true then the request will be forwarded to destination. matchExecuter has the priority on matchHost.
- authBasic: is used to add internal authentication
- user: is the username
- pass: is the password