Page 1 of 1

<Directory> tag in httpd.conf and '../'s (SSI)

PostPosted: 28. April 2007 10:20
by stabby
Can someone point me in the right direction as to how to allow (../)'s in the SSI statements.

ie
Code: Select all
<!--#include file="../../include/includefile.inc"-->


Or maybe even what these (../)'s are called?:)

Cheers
James

..

PostPosted: 28. April 2007 10:43
by stabby
ive just discovered I can use
<!--#include virtual=......>

and the statement works, but I still dont want to have to change the code.

Is is possible?

PostPosted: 28. April 2007 19:05
by Starrie
I find that we need more people answering questions instead of just looking at topics.....isn't that the whole point of a help forum????


anyways...

----------------------------------------------------------------------------------

Im sorry stabby, i dont really do SSI... i do php, which i find is easier to include files instead of SSI. But i'll see what i can do..

stabby wrote:Can someone point me in the right direction as to how to allow (../)'s in the SSI statements.


im not really understanding your question but by the example that you have given

stabby wrote:
Code: Select all
<!--#include file="../../include/includefile.inc"-->


i would say that you need to take away one of the (../)
like

Code: Select all
<!--#include file="../include/includefile.inc"-->


that is basically telling the server that it has to go back to the main directory (../) then into the include directory to find includefile.inc

stabby wrote:Or maybe even what these (../)'s are called?


Im not sure what their name is but i explained above basically what they do.... but they still look like dot dot fowardslash to me :wink: