[users@httpd] Re: Windows and Server Side Includes

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

 



Pid wrote:
> if it's called "home.shtm", you'll need to:
> 
>     AddType text/html .shtm
>     AddOutputFilter INCLUDES .shtm

To be somewhat more thorough, or at least to allow for this kind of potential
typo, try

AddType text/html .shtml .shtm
AddOutputFilter INCLUDES .shtml .shtm

And just as critical, there must be a space before the closing '-->' as
well:

    <!--#include FILE="./include/topnav_home.inc"-->     BAD
    <!--#include FILE="./include/topnav_home.inc" -->    GOOD


hugh

> Jack Gostl wrote:
> > I'm using 2.2.2 under Windows XP SP2, and I can't seem to get server
> > side includes to work. Specifically file includes.
> >  
> > Here is a typical statement from a file called home.shtm:
> >  
> >     <!--#include FILE="./include/topnav_home.inc"-->
> >  
> > I think I've followed the directions on activitating the includes, but
> > of course I could be wrong. Right where the comments indicate I've added:
> >  
> >     AddType text/html .shtml
> >     AddOutputFilter INCLUDES .shtml
> >  
> > I even added
> > 
> >     AddHandler server-parsed .shtml
> >  
> > because that was in my Unix http.conf. Still - nothing. Can anyone offer
> > any advice?
> >  
> > Thanks.
> >  
> > Jack
> >  
> >  
> 
> ---------------------------------------------------------------------
> 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
> 


-- 
 Hugh Williams                  "There are two things to aim for in life;
 hugh_williams@xxxxxxxxxxx       first, to get what you want; and after that,
 Agilent Technologies            to enjoy it.  Only the wisest of mankind
 Santa Rosa 2US-C                achieve the second."
 707.577.4941                         - Logan Pearsall Smith, 1931

---------------------------------------------------------------------
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