Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
litespeed_wiki:php:run-without-timeouts [2015/07/28 18:50] Michael Alegre created |
litespeed_wiki:php:run-without-timeouts [2019/03/24 16:45] qtwrk |
||
---|---|---|---|
Line 28: | Line 28: | ||
==== Through the "noabort" environment variable ==== | ==== Through the "noabort" environment variable ==== | ||
- | Aborting for a broken connection can be turned off by using the request-level "noabort" environment variable. This can be done in a rewrite rule or using the SetEnv/SetEnvIf directives. "noabort" is a LiteSpeed-specifc environment variable. | + | Aborting for a broken connection can be turned off by using the request-level "noabort" environment variable. This can be done in a rewrite rule or using the SetEnv/SetEnvIf directives. "noabort" is a LiteSpeed-specific environment variable, so all the following rules should be placed in |
+ | <IfModule Litespeed> | ||
+ | ... | ||
+ | </IfModule> | ||
The ''[E=noabort:1]'' flag can be added to any rewrite rule. The rewrite rule can be in an Apache .htaccess file or vhost-level configuration file. The rewrite flag should usually be used for a single account only. If you need to do a server-level configuration that will apply to all accounts (though perhaps only for certain scripts), you should use the SetEnvIf directive. | The ''[E=noabort:1]'' flag can be added to any rewrite rule. The rewrite rule can be in an Apache .htaccess file or vhost-level configuration file. The rewrite flag should usually be used for a single account only. If you need to do a server-level configuration that will apply to all accounts (though perhaps only for certain scripts), you should use the SetEnvIf directive. | ||
Line 68: | Line 71: | ||
This setting can be increased to allow scripts to run longer (though they will still time out after the specified time has elapsed). | This setting can be increased to allow scripts to run longer (though they will still time out after the specified time has elapsed). | ||
+ | |||
+ | If LiteSpeed ADC is running in front , ADC connection timeout also need to adjust. | ||
==== Through "noconntimeout" environment variable ==== | ==== Through "noconntimeout" environment variable ==== | ||
- | Similarly to the "noabort" environment variable, you can add the "noconntimeout" environment variable via a rewrite rule or using the SetEnv/SetEnvIf directives. (The rewrite flag is preferred for controlling a single account. The SetEnv/SetEnvIf directives are preferred for rules that will apply to all accounts.) "noconntimeout" is a LiteSpeed-specifc environment variable. | + | Similarly to the "noabort" environment variable, you can add the "noconntimeout" environment variable via a rewrite rule or using the SetEnv/SetEnvIf directives. (The rewrite flag is preferred for controlling a single account. The SetEnv/SetEnvIf directives are preferred for rules that will apply to all accounts.) "noconntimeout" is a LiteSpeed-specifc environment variable, so all the following examples should be placed inside: |
+ | <IfModule Litespeed> | ||
+ | ... | ||
+ | </IfModule> | ||
=== Rewrite rule examples: === | === Rewrite rule examples: === |