SSI In Subdirectorys

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


Joined: 17 Jun 2003
Posts: 2
Location: http://www.theuniverses.uni.cc

PostPosted: Tue Jun 17, 2003 9:32 pm    Post subject: SSI In Subdirectorys Reply with quote

I tried to do SSI in subdirectorys. Like, htdocs/site1/folder. It wouldn't work!!! Inside the 'folder', i had a index.shtml which was proccessed and it came up with a error saying bad file path. The file it was suppose to include was in 'site1' folder. In the index.shtml, I had put <!--#include file="../file.txt" -->. Help!!!
_________________
..:: Pegasus ::..
http://www.theuniverses.uni.cc
http://forum.theuniverses.uni.cc
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Jun 19, 2003 2:28 pm    Post subject: Re: SSI In Subdirectorys Reply with quote

pegasus wrote:
I tried to do SSI in subdirectorys. Like, htdocs/site1/folder. It wouldn't work!!! Inside the 'folder', i had a index.shtml which was proccessed and it came up with a error saying bad file path. The file it was suppose to include was in 'site1' folder. In the index.shtml, I had put <!--#include file="../file.txt" -->. Help!!!

Using ../ in a path in an SSI inclusion is forbidden for security reasons. You should use <!#include virtual="/virtualpathtofile"> instead where http://yoursite/virtualpathtofile is the URL to file.txt.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
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