MyTetra Share
Делитесь знаниями!
Apache config
Время создания: 21.04.2014 13:52
Раздел: root - Internet
Запись: Yurons/mytetra/master/base/13980775212dvqq3bhy3/text.html на raw.github.com

KeepAliveTimeout DirectiveDescription: Amount of time the server will wait for subsequent requests on a persistent connection

Syntax: KeepAliveTimeout seconds

Default: KeepAliveTimeout 5

Context: server config, virtual host

Status: Core

Module: core

The number of seconds Apache will wait for a subsequent request before closing the connection. Once a request has been received, the timeout value specified by the Timeout directive applies.

Setting KeepAliveTimeout to a high value may cause performance problems in heavily loaded servers. The higher the timeout, the more server processes will be kept occupied waiting on connections with idle clients.

In a name-based virtual host context, the value of the first defined virtual host (the default host) in a set of NameVirtualHost will be used. The other values will be ignored.

mod_rewrite

QSA|qsappend

When the replacement URI contains a query string, the default behavior of RewriteRule is to discard the existing query string, and replace it with the newly generated one. Using the [QSA] flag causes the query strings to be combined.

Consider the following rule:

RewriteRule /pages/(.+) /page.php?page=$1 [QSA]

With the [QSA] flag, a request for /pages/123?one=two will be mapped to /page.php?page=123&one=two. Without the [QSA] flag, that same request will be mapped to /page.php?page=123 - that is, the existing query string will be discarded.

Вопрос решился следующим образом

RewriteCond %{QUERY_STRING} ^(.+)$
RewriteRule ^action/([^/]*)/?$ ?action=$1&%1 [R,L]

То что помогло мне

RewriteEngine On

Options +FollowSymlinks

#RewriteLogLevel 4

#RewriteLog "/tmp/rewrite.log"

RewriteCond %{REQUEST_URI} ^/as/YoutubeDash/youtube.com/manifests_json [OR]

RewriteCond %{REQUEST_URI} ^/as/YoutubeDash/youtube.com/manifests_html

RewriteCond %{QUERY_STRING} ^(.+)$

RewriteRule (.+)\watch? $1\watch_%1 [QSA,L]

 
MyTetra Share v.0.59
Яндекс индекс цитирования