Getting Server Side includes to process relative file paths

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
praveenr
-


Joined: 20 Aug 2008
Posts: 1

PostPosted: Wed Aug 20, 2008 1:48 am    Post subject: Getting Server Side includes to process relative file paths Reply with quote

Hello,

I have a file index.html in the /home directory of my web server. This file has a number of server side includes with relative paths as shown below.

<!--#include virtual="../includes/head.inc" -->
<!--#include virtual="../includes/body_begin.inc" -->

When processing the file, the Abyss web server throws an error for each of the includes.
[SSI Error in directive include in line 7: Bad file path]
[SSI Error in directive include in line 14: Bad file path]

Is there a way to configure Abyss to read relative file paths to include files?

I tested this out with absolute file paths and it seems to work. I have a large number of files that reference the includes using relative file paths. It would quite a pain for me to search and replace every single include with an absolute file path.

Hence my question to see if there was an easier configuration option in Abysss to help with this issue.

Thanks in advance for your help.
Back to top View user's profile Send private message
swissboney3
-


Joined: 02 Jul 2005
Posts: 31

PostPosted: Fri Aug 22, 2008 3:17 am    Post subject: Reply with quote

hmm by the looks of it, you shouldnt be using
Code:
<!--#include virtual="../includes/body_begin.inc" -->
, but
Code:
<!--#include file="../includes/body_begin.inc" -->
instead :) hope this helps
Back to top View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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


Powered by phpBB phpBB Group