Hallo,
gibt es ein Performance-Gewinn, wenn ich die Rewrite-Regeln einer derzeit recht umfangreichen .htaccess-Datei (79594 Byte) in die vHost-Datei umschreibe?
Vielen Dank & LG,
Stefan
mod_rewrite Regeln .htaccess -> vhost.conf
-
Roger Wilco
- Posts: 5923
- Joined: 2004-05-23 12:53
Re: mod_rewrite Regeln .htaccess -> vhost.conf
Theoretisch ja, da die .htacces beim Zugriff auf das Verzeichnis geparsed werden muss. Allerdings gehe ich davon aus, dass der Apache httpd den einmal eingelesenen Inhalt cached und erst neu einliest, wenn sich die Datei geändert hat.
Re: mod_rewrite Regeln .htaccess -> vhost.conf
Nein, siehe Doku.Roger Wilco wrote:Allerdings gehe ich davon aus, dass der Apache httpd den einmal eingelesenen Inhalt cached und erst neu einliest, wenn sich die Datei geändert hat.
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
-
Roger Wilco
- Posts: 5923
- Joined: 2004-05-23 12:53
Re: mod_rewrite Regeln .htaccess -> vhost.conf
Die Doku kenne ich. Der Quellcode vom Apache httpd 2.2.11 sagt aber etwas anderes. ;)Joe User wrote:Nein, siehe Doku.
(Konkret config.c, Funktion ap_parse_htaccess, falls es interessiert)
Re: mod_rewrite Regeln .htaccess -> vhost.conf
Hmm, dann stimmt die Doku nicht mehr. Danke.
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Re: mod_rewrite Regeln .htaccess -> vhost.conf
Ich danke euch für die Auskunft. Bei mir hat es spürbare Verbessungen gebracht.
Der Load des Webservers verringert sich von ca. 2,0 auf derzeit noch 0,25 bei vergleichbaren Zugriffen.
Jetzt ist wieder ne Menge Luft nach oben :-)
LG,
Stefan
Der Load des Webservers verringert sich von ca. 2,0 auf derzeit noch 0,25 bei vergleichbaren Zugriffen.
Jetzt ist wieder ne Menge Luft nach oben :-)
LG,
Stefan
Re: mod_rewrite Regeln .htaccess -> vhost.conf
Die Doku stimmt schon noch, am Ende des Requests war es nämlich mal etwas mit dem Cache. Gecached wird im request pool r->pool und der überlebt nur den derzeitigen Request. Nützlich ist er daher nur für subrequest-lookups oder re-processings (durch internal_redirect), die den "gleichen Weg" nutzen wie das Processing zuvor. Bei einem neuen Request (und einem neuen request pool) geht alles von vorne los.Hmm, dann stimmt die Doku nicht mehr. Danke.
Neben dem bloßen Umschreiben sollte natürlich auch AllowOvrride dann entspr. auf ggf. none angepasst werden, damit gar nicht erst stat() auf .htaccess-Dateien stattfinden.
Re: mod_rewrite Regeln .htaccess -> vhost.conf
Danke für die Klarstellung Rob.
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
