ssi

What's the difference between DOCUMENT_URI and URI_REQUEST in SSI?

When looking at a SSI printenv dump I see a variable URI_REQUEST. When reading the Apache mod_include docs I see DOCUMENT_URI which they define as "The (%-decoded) URL path of the document requested by the user." Anyone know the difference between the two? TIA. ...

Getting Apache to modify static webpages on the fly

I have been experimenting with woopra.com A web analytics tool. Which requires a piece of javascript code to be added to each page to function. This is easy enough with more dynamic sites with universal headers or footers but not for totally static html pages. I attempted to work round it by using a combination of Apache rewrites and S...

SSI and XSL

I am building a menu and have it set up so that I use a stadard <!--#include virtual = "myDoc.xml" --> SSI tag to include my xml document. The xml document includes the xsl document with <?xml-stylesheet type="text/xsl" href="myOtherDoc.xsl"?>. For some reason the xsl document is not working. The xml is being displayed as a blob. Th...

How do I run a file on localhost?

How do I actually run a file on localhost? I know it is working, but how do I run a file on it, and how do I verify that the file is in fact running on localhost? Server newbie here, additional questions (I have xampp running Apache 2.2): From your responses it sounds like I have to type in the path in the browser in order to open the f...

Includes: SSI or PHP for basic HTML and Javascript in separate files

Thanks to everyone here, got the Xampp server running!!! and can run my html in subdirectories now, as well. (can't have spaces in the subdirectory names) NEXT UP - SSI Includes or PHP Includes Xampp says SSI is deactivated. Tried uncommenting the lines for includes, but it doesn't change the deactivation. How do I activate SSI? Then...

Including .asp file into html file.

How can include .asp file inside of html file and have it proccessed besides having to process all html files with asp. ...

server-side includes and character encoding

Hi, I created this static website in which each page has the following structure: Common stuff like header, menu, etc. Page specific stuff in main content div Footer In the website linked above all the common stuff was duplicated in each page. In order to improve the maintainability I refactored the pages to use server-side includes...

Apache: SSI inside SSI

Is there a way I can include include files inside include files? (Say that five times fast!) For example: Inside index.html: <!--#include virtual="/include-1.shtml"--> Inside include1.shtml: <!--#include virtual="/include-2.shtml"--> So the tree looks like this: index.html <-- include_1.shtml <-- include_2.shtml As is, this is n...

printing document path with SSI

I'm currently trying to print out a document path with SSI in Apache. I've managed to get it working, except that I have to hard code in the 'http://' at the beginning. My current code is: You are currently here: <a href="http://&lt;!--#echo var="HTTP_HOST" --><!--#echo var="REQUEST_URI" -->">http://&lt;!--#echo var="HTTP_HOST" --><!--#...

Enabling SSI (ServerSide Includes) in JBoss?

Any of you guys have enabled SSI (ServerSide Includes) in JBoss? I guess it should be not difficult as it is built on top of a Tomcat instance. ...

Parse the HTTP_COOKIES string from Apache for use in #if clause

I want to be able to read the cookies from Apache's HTTP_COOKIE string and then add includes based on the contents of that string. I've got this far: <!--#set var="cookies" value="HTTP_COOKIE" --> <p>COOKIES: <!--#echo var="$cookies"--></p> which gives me a string with all the cookies in it. Now I want to be able to parse the strin...

SSI Jboss not including html (context issues)

Hi I hope that someone out there could give a clue on where to here. Here's the problem. I have enabled SSI in some jboss under Solaris, I have the application web.xml configured as follows: <filter> <filter-name>ssi</filter-name> <filter-class> org.apache.catalina.ssi.SSIFilter </filter-class> <init-param> <param-name>conte...

Server Side Include

Is it possible to use a server side include to access files that are outside of the server? If not what are some other options to do this? ...

Read in Contents of a Folder, onto HTML

I am trying to create a news ticker for a website that reads in the contents of a folder, where each file in the folder would hold a news update, and I am trying to do this without having to manually create 10 different Iframes for each individual file, and having to keep files names etc. the same. Is this possible, and if so how is it ...

SSI escape HTML output

When i use SSI directive is there any way to escape variable with HTML entities? <META HTTP-EQUIV="Refresh" CONTENT="10; URL="/index.shtml?r=<!--#echo var="HTTP_REFERER" -->"> Thx in advice! ...

SSI commands not working is for shtml files in iis

the following code should show either the port or servername not both i always get both no matter what ? <!--#if expr="${SERVER_PORT} = 80" --> <!--#echo var="SERVER_PORT"--> <!--#else --> <!--#echo var="SERVER_NAME"--> <!--#endif --> i have also tried the follwoing with no joy either !! <!--#if expr="${SERVER_PORT} = '8...

Possible memory leaks on a plain jsp site

First of all, I lie, it's not really a plain jsp website. It has a couple of pages with database access and a lucene based search engine... and around 400 standalone jsp pages. The problem is that the admins on a production server we've not access to, say that the site is consuming too much memory (200+ Megs), and we are probably facing...

SSI: Navigation Menu TOO Long - Can you help?

The SSI menu file is http://www.fabserv.com/includes/navigation.ssi and the drop down menu on the root URL. I took over maintenance on a site that is using this SSI menu drop down file but additions I am adding has extended the drop down list way too far. Is there anyone that can tell me how to break this drop down list into two colum...

Microsoft Index Server - SSI

Hi experts... I'm currently having difficulty integrating my Search page, which is currently using Microsoft Index Server, with my generated .shtml files from the CMS. It seems that Microsoft Index Server is not able to search for .shtml files (HTML with Server Side Includes/SSI) properly. Any idea why and the solution to it? Any other ...

Server Side Includes and GZip?

Is it possible to use GZip compression on the ouput of files that have been created using server side includes in IIS 6? If so how? ...