homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Of ./name.html and /name.html
Do they read from the file calling them?

5+ Year Member

Msg#: 3627588 posted 6:28 pm on Apr 15, 2008 (gmt 0)


this code:

<!--#if expr="(${inclprefix} != /^$/ && ${inclprefix} != /^\(none\)$/)" -->

<!--#include virtual="${inclprefix}2.txt" -->

<!--#endif --> (kindly suggested by Mr. Morgan a year ago - and working flawlessly ever since)

from the public directory ( http://www.domain.com/file.html ) to "directory a" inside the public directory ( http://www.domain.com/a/file.html ), stopped it from working.

Reading this http://www.webmasterworld.com/forum92/4498.htm I took a chance and tested replacing ${inclprefix} with each of these:




The first two work and the third does not.

Is it because they are interpreting the instructions from the perspective of the file that calls them?

So, /a/name.html is actually looking for http://www.domain.com/a/a/name.html?

Do either of /${inclprefix} and ../${inclprefix} raise security issues?



WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 3627588 posted 12:26 am on Apr 17, 2008 (gmt 0)

I think the filenames are relative or absolute within the filesystem folder structure. They are NOT seen as URLs from the outside, but instead as internal folders within the server. It's only a URL when your browser requests it. This is an internal process within the server, therefore it isn't a URL as such.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved