Re: Server Side Include (SSI) is slower than PHP ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 18/02/2008, howard chen <howachen@xxxxxxxxx> wrote:
> I am running  Apache/2.2.6 on Windows XP, testing on a very simple
> include testes, e.g.
>
> SSI
> ===
>
> <!--#include virtual="modules/1.html" -->
> <!--#include virtual="modules/2.html" -->
> <!--#include virtual="modules/3.html" -->
> <!--#include virtual="modules/4.html" -->
> <!--#include virtual="modules/5.html" -->

These kinds of includes cause Apache to run an internal redirect for
each included file. This is just a guess but if your server has
AllowOverride set to something other than None and your DocumentRoot
is /deeply/buried then Apache must stat() for a large number of
.htaccess files. In this case, <number of includes> * <depth of
DocumentRoot>.

Php on the other hand just reads the files directly.

-- 
noodl

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux