Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

include external (nav) in html

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  1.3.27 core dumps if PHP4 module is loaded.  
Author Message
user2610

External


Since: Jan 01, 2004
Posts: 2



(Msg. 1) Posted: Thu Jan 01, 2004 4:56 pm
Post subject: include external (nav) in html
Archived from groups: alt>apache>configuration (more info?)

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?

thanks in advance!

 >> Stay informed about: include external (nav) in html 
Back to top
Login to vote
nospam197

External


Since: Dec 22, 2003
Posts: 16



(Msg. 2) Posted: Fri Jan 02, 2004 12:39 am
Post subject: Re: include external (nav) in html [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Two things:

1. Verify that the INCLUDES output filter is turned on for .html.
2. Try <!--#include file="nav.html"> being sure to insert the pound sign.

--Brian

"sc" <sc.DeleteThis@qwestisp.net> wrote in message
news:7GVIb.10704$LO.10513@newssvr33.news.prodigy.com...
 > 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?
 >
 > thanks in advance!
 >
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: include external (nav) in html 
Back to top
Login to vote
marcnadonospam

External


Since: Nov 18, 2003
Posts: 25



(Msg. 3) Posted: Fri Jan 02, 2004 5:19 am
Post subject: Re: include external (nav) in html [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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?
 >
 > thanks in advance!

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

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

And for the directories where you mant the SSI active:

IncludesNoExec

This per dir directive in inherited by the descendant directories.

Bonne chance!

--
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 
Back to top
Login to vote
user2610

External


Since: Jan 01, 2004
Posts: 2



(Msg. 4) Posted: Sun Jan 04, 2004 11:29 pm
Post subject: Re: include external (nav) in html [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.DeleteThis@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?
  > >
  > > thanks in advance!
 >
 > 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">
 >
 > 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
 >
 > And for the directories where you mant the SSI active:
 >
 > IncludesNoExec
 >
 > This per dir directive in inherited by the descendant directories.
 >
 > Bonne chance!
 >
 > --
 > Marc Nadeau
 > La Pagerie
<font color=purple> > <a style='text-decoration: underline;' href="http://www.pagerie.com</font" target="_blank">http://www.pagerie.com</font</a>><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: include external (nav) in html 
Back to top
Login to vote
marcnadonospam

External


Since: Nov 18, 2003
Posts: 25



(Msg. 5) Posted: Mon Jan 05, 2004 4:45 am
Post subject: Re: include external (nav) in html [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
INCLUDE vs FrontPage - I have FrontPage 2002 extensions installed on Apache 1.3 / RedHat 7.3 successfully. I have several virtual hosts, all configured withing /etc/httpd/conf/httpd.conf. I created a directory /etc/httpd/conf/vhosts and added the following line to..

include remote - Apache 2.0.47, PHP 4.3.2, windows XP Pro PHP includes of remote files give an error on Apache, includes of local files no problem. The problem with inclusion of remote files was solved with PHP 4.3.2, but still seems a problem on Apache 2.0.47. Maybe ...

Php Include Problem - I have a few php scripts which perform various database queries. Originally I had them all in the same directory which could be viewed through my apache web server via http://localhost/admin/. I wanted a couple of the php scripts to be accessable on..

include file in every directory - I'm using apache2 on RH9. I have a certain file "list.php" that I'd like to appear in every directory on a virtual host. For example I want to see www.test.com/list.php , www.test.com/user/list.php , www.test.com/user/docs/work/list.php et...

Can htaccess include another file? - Hi, I want to achieve something like this. Imagine I have a file called textfile_ips.txt which contains a whole bunch of IP addresses which I want to blocked, one per line. Can I do something like this? <Files "somefile.html"> deny ...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]