sc a écrit:
> thanks for you suggestion.. i'm not familiar with apache at all..
>
> where in the httpp.conf file do i place the information you suggested?
>
> thanks in advance!
>
>
> "Marc Nadeau" <marcnadoNOSPAMSVP RemoveThis @yahoo.fr> wrote in message
> news:Py4Jb.24673$6N3.4437@charlie.risq.qc.ca...
>> sc a écrit:
>>
>> > hi,
>> >
>> > our web site is running on a windows apache server..
>> >
>> > we have several HTML pages and I want to separate the nav.html and then
>> > include that in all the files..
>> >
>> > I've tried this..
>> > <!--include file="nav.html">
>> >
>> > but it doesn't include the information?
>> >
>> > how do I get this to work?
>> >
>>
>> The instruction <!--include file="nav.html"> will only works if nav.html
> is
>> in the current directory.
>>
>> If not, use: <!--include virtual="path/to/nav.html">
You know where this one goes.
>>
>> Usually, the including file has the .shtml extension.
>>
>> Also make sure somewhere in your config files you have the following
>> directives:
>>
>> AddType text/html .shtml
>> AddOutputFilter INCLUDES .shtml
Those two instructions can be almost anywhere near the beginning of your
config file.
I think that they also could be in a separate virtual host config file if
you have virtual hosts (often recommended).
>>
>> And for the directories where you mant the SSI active:
>>
>> IncludesNoExec
This one is usually part of a directory block like:
<Directory "/var/www/yourDir/">
AllowOverride None
Options IncludesNoExec
</Directory>
There0 is an other way to use SSI through the XBitHack On instruction but it
is usually not recommended and somewhat ressource consuming.
>>
>> This per dir directive in inherited by the descendant directories.
>>
The instruction is inherited by the sub-directories of /var/www/yourDir/
It can be bypassed by a new directory block for a specific sub-directory or
by the use of a .htaccess file when the AllowOverride instruction permits
(unlike our example) .
apache comes with well written and very complete instructions. Take the time
to read those twice or 3ce. You will save time on maintenance after.
<notroll reaction="ignored">
If the machine's only use is to run apache and serve web pages, i suggest
that you switch from Windows to some flavor of Unix (Linux or BSD) , you
will save money, work in a more stable and secure environment and feel more
free and happy. This is not advocacy, just plain truth from a friendly me.
</notroll>
And please, do not topPost.
Bonne chance again! Et bonne lecture.
--
Marc Nadeau
La Pagerie
<a style='text-decoration: underline;' href="http://www.pagerie.com" target="_blank">http://www.pagerie.com</a><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: include external (nav) in html