RootsWeb.com Mailing Lists
Total: 1/1
    1. Re: [FreeHelp] Configure WAMP Apache Server for SSI
    2. Barry Carlson
    3. Contrary to information I have posted earlier, and exactly as Pat Asher has said, the server needs to be configured to parse .txt files on a s/html page. I had been parsing Includes embedded on a page, and forgot to check the obvious. So the directives contained in my original post (below) should have .txt added as follows:- Change the lines indicated in the original post below to:- AddType text/html .shtml .shtm .html .htm .txt AddOutputFilter INCLUDES .shtml .shtm .html .htm .txt So, that effectively covers the field, and s/html/text files will be parsed for SSI/XSSI directives. Barry -------------------------------------------------------- Following some fruitless discussion a couple of days ago on how to get the WAMP Apache server to parse Includes files at http://localhost, I have installed the package and sorted what needs to be done to the httpd.conf file which is accessible directly from the server icon in the Windows systems tray. Click on the WAMP icon in the tray, navigate to Apache/httpd.conf and click (once). The configuration file will now display complete with a lot of instruction on what and what not to do. The rows prefixed with # are comments, and various directives contained throughout the narrative can be made active by removing the # immediately to their left. Find the following:- > # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks > Change the line above to :- Options Indexes FollowSymLinks Includes > For the next scroll down about 80% - > # Filters allow you to process content before it is sent to the client. # # To parse .shtml files for server-side includes (SSI): # (You will also need to add "Includes" to the "Options" directive.) # AddType text/html .shtml AddOutputFilter INCLUDES .shtml > Change the lines above to :- AddType text/html .shtml .shtm .html .htm AddOutputFilter INCLUDES .shtml .shtm .html .htm > Close the file and when prompted, select SAVE. Click on the WAMP server icon and select Restart All Services. A HTML file loaded to a directory in localhost and containing SSI/XSSI directives will, when called, be parsed by the server. My system is set up so that the localhost is at c:/wamp/www/ and my parent directory is at c:/wamp/www/home For security and simplicity, I have not made any attempt to provide external access to the localhost, but this can be done using a domain name server IP address setup. This means the http://localhost is secure behind my firewall. In my case there is no need to FTP data to the localhost, and the normal Explorer methods of copying files is used. Note:: There are other methods of achieving the same result, e.g. xbithack, but the above is simple.

    02/20/2011 08:33:14