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

strange problem with server side includes

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Installing Apache on Mandrake Linux  
Author Message
lkrubner

External


Since: Aug 06, 2004
Posts: 4



(Msg. 1) Posted: Fri Aug 06, 2004 4:59 pm
Post subject: strange problem with server side includes
Archived from groups: alt>apache>configuration (more info?)

I edited default.config so that server side includes would work on
files that end with ".shtm". (I just imported this site from another
server, where it was working like this.) Things seem to work, save on
this page:

http://publicpen.com/staengl/projects/chem/default.shtm


What does this error message mean?

 >> Stay informed about: strange problem with server side includes 
Back to top
Login to vote
patpro2

External


Since: Mar 21, 2004
Posts: 50



(Msg. 2) Posted: Sat Aug 07, 2004 4:12 am
Post subject: Re: strange problem with server side includes [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <da7e68e8.0408061259.51b804c0.TakeThisOut@posting.google.com>,
lkrubner.TakeThisOut@geocities.com (lawrence) wrote:

 > I edited default.config so that server side includes would work on
 > files that end with ".shtm". (I just imported this site from another
 > server, where it was working like this.) Things seem to work, save on
 > this page:
 >
<font color=purple> > <a style='text-decoration: underline;' href="http://publicpen.com/staengl/projects/chem/default.shtm</font" target="_blank">http://publicpen.com/staengl/projects/chem/default.shtm</font</a>>
 >
 >
 > What does this error message mean?

it means an error occured... Smile
your shtml is parsed, so SSI are processed, but your SSI directive looks
buggy to the parser. May be an include of a file that is unavailable to
apache (permission or path problem), or maybe another problem...
That would help if you could provide us with details, like the ssi
directive that triggers these errors.

(nice design by the way)

patpro

--
je cherche un poste d'admin UNIX/Mac
<a style='text-decoration: underline;' href="http://patpro.net/cv.php" target="_blank">http://patpro.net/cv.php</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: strange problem with server side includes 
Back to top
Login to vote
lkrubner

External


Since: Aug 06, 2004
Posts: 4



(Msg. 3) Posted: Sat Aug 07, 2004 1:08 pm
Post subject: Re: strange problem with server side includes [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

patpro ~ patrick proniewski <patpro.DeleteThis@boleskine.patpro.net> wrote in message news:<patpro-0B6730.01120807082004.DeleteThis@individual.net>...
 > In article <da7e68e8.0408061259.51b804c0.DeleteThis@posting.google.com>,
 > lkrubner.DeleteThis@geocities.com (lawrence) wrote:
 >
  > > I edited default.config so that server side includes would work on
  > > files that end with ".shtm". (I just imported this site from another
  > > server, where it was working like this.) Things seem to work, save on
  > > this page:
  > >
<font color=green>  > > <a style='text-decoration: underline;' href="http://publicpen.com/staengl/projects/chem/default.shtm</font" target="_blank">http://publicpen.com/staengl/projects/chem/default.shtm</font</a>>
  > >
  > >
  > > What does this error message mean?
 >
 > it means an error occured... Smile

Thanks. Sorry for the dumb question. I'm filling in for a fellow who
was supposed to cover handle our server issues. I'm new to Apache,
though I bought the O'Reilly book and I'm trying to learn it.



 > your shtml is parsed, so SSI are processed, but your SSI directive looks
 > buggy to the parser. May be an include of a file that is unavailable to
 > apache (permission or path problem), or maybe another problem...
 > That would help if you could provide us with details, like the ssi
 > directive that triggers these errors.

Well, here is the top of one of the flawed pages:

<html>
<head>
<title>Staengl Engineering: Energy Efficient Design</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<!-- Fireworks MX Dreamweaver MX target. Created Tue Feb 17 00:36:21
GMT-0500 (Eastern Standard Time) 2004-->
<!--#include file="../../inc_scripts.js" -->

This looks right to me. 2 levels up there is a file called
inc_scripts.js, and it has permissions of 644, which should allow it
to be read. But when you go to the page:
<a style='text-decoration: underline;' href="http://publicpen.com/staengl/projects/chem/default.shtm" target="_blank">http://publicpen.com/staengl/projects/chem/default.shtm</a>

There is that error message. Guesses?





 > (nice design by the way)

I can't take credit for the design. I'm a programmer, not a designer,
when I'm forced to do design work (which is too often) the result is
always dull. The talented designer of this site has a site here:

<a style='text-decoration: underline;' href="http://www.breviloquent.com/" target="_blank">http://www.breviloquent.com/</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: strange problem with server side includes 
Back to top
Login to vote
patpro2

External


Since: Mar 21, 2004
Posts: 50



(Msg. 4) Posted: Sun Aug 08, 2004 3:57 am
Post subject: Re: strange problem with server side includes [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <da7e68e8.0408070908.7bd789d7 RemoveThis @posting.google.com>,
lkrubner RemoveThis @geocities.com (lawrence) wrote:

  > > That would help if you could provide us with details, like the ssi
  > > directive that triggers these errors.
 >
 > <!--#include file="../../inc_scripts.js" -->

try <!--#include virtual="../../inc_scripts.js" -->


  > > (nice design by the way)
 >
 > I can't take credit for the design. I'm a programmer, not a designer,
 > when I'm forced to do design work (which is too often) the result is
 > always dull. The talented designer of this site has a site here:
 >
<font color=purple> > <a style='text-decoration: underline;' href="http://www.breviloquent.com/</font" target="_blank">http://www.breviloquent.com/</font</a>>

oki Wink

patpro

--
je cherche un poste d'admin UNIX/Mac
<a style='text-decoration: underline;' href="http://patpro.net/cv.php" target="_blank">http://patpro.net/cv.php</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: strange problem with server side includes 
Back to top
Login to vote
lkrubner

External


Since: Aug 06, 2004
Posts: 4



(Msg. 5) Posted: Sun Aug 08, 2004 3:24 pm
Post subject: Re: strange problem with server side includes [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

patpro ~ patrick proniewski <patpro RemoveThis @boleskine.patpro.net> wrote in message news:<patpro-032663.00570508082004 RemoveThis @individual.net>...
 > In article <da7e68e8.0408070908.7bd789d7 RemoveThis @posting.google.com>,
 > lkrubner RemoveThis @geocities.com (lawrence) wrote:
 >
   > > > That would help if you could provide us with details, like the ssi
   > > > directive that triggers these errors.
  > >
  > > <!--#include file="../../inc_scripts.js" -->
 >
 > try <!--#include virtual="../../inc_scripts.js" -->

Nice! That solved the problem. Do you know of a setting I could tweak
to make this work:

<!--#include file="../../inc_scripts.js" -->


as well as this works:

<!--#include virtual="../../inc_scripts.js" -->

Mostly I want to be able to tell future web designers that I can tweak
Apache to work as they expect, and clearly the designer who designed
this site was working with a web server that worked fine with
"file='../inc.hs'".<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: strange problem with server side includes 
Back to top
Login to vote
patpro2

External


Since: Mar 21, 2004
Posts: 50



(Msg. 6) Posted: Mon Aug 09, 2004 12:56 am
Post subject: Re: strange problem with server side includes [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <da7e68e8.0408081124.2a101517 DeleteThis @posting.google.com>,
lkrubner DeleteThis @geocities.com (lawrence) wrote:

  > > try <!--#include virtual="../../inc_scripts.js" -->
 >
 > Nice! That solved the problem. Do you know of a setting I could tweak
 > to make this work:
 >
 > <!--#include file="../../inc_scripts.js" -->

 > Mostly I want to be able to tell future web designers that I can tweak
 > Apache to work as they expect, and clearly the designer who designed
 > this site was working with a web server that worked fine with
 > "file='../inc.hs'".

taken from the apache doc :

The include element can determine what file to include with either the
file attribute, or the virtual attribute. The file attribute is a file
path, relative to the current directory. That means that it cannot be
an absolute file path (starting with /), nor can it contain ../ as part
of that path. The virtual attribute is probably more useful, and should
specify a URL relative to the document being served. It can start with
a /, but must be on the same server as the file being served.

so :
I strongly encourage you to use the virtual attribute.


patpro

--
je cherche un poste d'admin UNIX/Mac
<a style='text-decoration: underline;' href="http://patpro.net/cv.php" target="_blank">http://patpro.net/cv.php</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: strange problem with server side includes 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Apache Server Side Includes SSI problem with html files so.. - Simple Steps: - Make sure the "mod_include.so" file exist in the "modules" folder. You may need to rebuild to have this module. - Open the "httpd.conf" file in the "conf" folder. Use notepad for Windows users. ...

trouble with Server Side Includes not working - Hello, I have a problem, in that Server Side Includes are not being included. I have the server set up correctly (according to the book), with LoadModule include_module modules/mod_include.so <VirtualHost 67.117.74.180> ...

Apsche win32 Serve Side Includes - Hello Configuartion: Apache/1.3.28 (Win32) with SSI. With IE 6 an Netscape 4.75 all works fine. With Mozilla 1.4.1 or Netscape 7.1 I can only see the source code. Is it a bug in apache.conf or in mozilla- Who can help me ps. without ssi all works fine....

Strange problem with server accessibility - I am running Apache 2.0.47 on my WinXP box at home. My system is behind a D-Link DI-714P+ router, and Apache is listening on a non-standard port, which of course I have the router forward to my system. Apache itself works perfectly, but not under all..

php includes problem OS X - hello all I have managed to configure apache to server PHP and to Serve out Virtual hosts all seems to be fine BUT pages that start with <% require once etc %> stall. the server seems to simply stop serving the file. I have looked at httpd.con...
   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 ]