httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darren" <back...@crotchett.com>
Subject Re: SSI - I'm Stuck
Date Sat, 05 Jan 2002 04:48:26 GMT
I'm fairly new to the art of httpd.conf editing myself.  So, correct me if
I'm wrong.  But, doesn't your example need quotes around the path?

this:
<Directory "/home/joe/html/ssi-file">
    Options Includes
</Directory>

instead of this:
> <Directory /home/joe/html/ssi-file>
>   Options Includes
> </Directory>

Darren

----- Original Message -----
From: "Owen Boyle" <obo@bourse.ch>
To: <users@httpd.apache.org>
Sent: Friday, January 04, 2002 10:16 AM
Subject: Re: SSI - I'm Stuck


> Vernon A Webb wrote:
> >
> > Hey all,
> >
> > I am new to Apache and am currently reading through a book
> > called "Apache Web Server Administration" which starts
> > discussing SSI and it is telling me that I need to add the
> > Options Includes directive to enable Includes for "the
> > directory (or directories)" but I have no clue as to what
> > they mean.
> >
> > I have also noticed in my httpd.conf file that there are
> > <Directory "/">, etc tags which I do not understand. I do
> > understand that the <VirtualHost > tags define the Web
> > sites being hosted either with IPs or names, but what are
> > the Directory tags for and what does this guy mean by this?
> > I have noticed in the <Directory "/var/www/html"> that
> > Options indexes FollowSymlinks is defined, does that mean it
> > is already defined?
>
> Forget about apache for a minute.
>
> On your computer you have got files like index.html and banana.html and
> so on. Files are kept in directories.
>
> The scope of apache directives can be defined on a per-directory basis.
> In other words; the commands you type in httpd.conf are called
> directives. Directives have to apply to something. What they apply to is
> called their "scope". You can define their scope so that the directives
> apply to all the files in a directory.
>
> The <Directory> tag is how you make a list of directives apply to all
> the files in a directory.
>
> Example.
>
> Suppose you have got a directory called /home/joe/html which contains
> the file index.html. Suppose it also contains another directory called
> "ssi-files" and that this directory has got a file called "my-ssi.html".
> To get apache to do server-side includes on this file you have to apply
> the appropriate Directive to this file. One way to do this is to apply
> the directive to the directory that the file lives in; i.e.
>
> <Directory /home/joe/html/ssi-file>
>   Options Includes
> </Directory>
>
> Now when apache is asked for the file "home/joe/ssi-files/my-ssi.html",
> it will say, "Aha! this file lives in /home/joe/html/ssi-file. I must
> apply Options Includes to it." and so it sill get SSI-ised.
>
> Rgds,
>
> owen Boyle.
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message