httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Cheshire" <>
Subject Re: [users@httpd] Looking for some ideas on how to stop someone view an html page directly using Server Side Includes
Date Fri, 06 Oct 2006 04:20:38 GMT
What about putting main.html inside the WEB-INF folder hierarchy and
having your index page do the SSI include of the main page. The web
server should be set up to automatically deny all access to everything
under WEB-INF but as an SSI type request this will not come into

I have done this in JSP successfully, I am assuming that the shtml SSI
directives will work in a similar way.



On 10/5/06, Randy Paries <> wrote:
> I need some ideas on how to solve this problem. I am thinking there has to
> be a way...
> I have a web server with thousands of users(each with their own
> sub-directories)
> In each of these sub directories is a file called main.html
> (btw  these are the only htmls the rest of the site is jsp and perl, i do
> not have to rename them to shtml)
> What i am trying to figure out how to do is restrict them from doing
> the correct way is to do which calls index that
> has frames and so on.
> So i was thinking maybe i could use SSI. I have been reading the doc, but it
> looks pretty limited
> Can SSI look for a cookie or something and then if not present do something
> else?
> So i thought i would approach this group and see if anyone had any brilliant
> ideas.
> Thanks
> Randy

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message