View previous topic :: View next topic |
Author |
Message |
praveenr -
Joined: 20 Aug 2008 Posts: 1
|
Posted: Wed Aug 20, 2008 1:48 am Post subject: Getting Server Side includes to process relative file paths |
|
|
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 |
|
|
swissboney3 -
Joined: 02 Jul 2005 Posts: 31
|
Posted: Fri Aug 22, 2008 3:17 am Post subject: |
|
|
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 |
|
|
|