jlk.net
Debugging CGI scripts with Apache
http://www.jlk.net/apache/debugging_cgi.shtml
Once you have a basic CGI configuration working, there are some additional Apache directives which can assist you in debugging your CGI scripts. Warning! You should only use these directives during development. They are not optimised for a production machine and can cause a significant overhead on you server. Adding the directive ScriptAliases. In your srm.comf. Will enable logging of CGI error information. To re-start Apache after any changes you make to the configuration file. We know from our modifica...
jlk.net
eXtended SSI
http://www.jlk.net/apache/xssi.shtml
Extender SSIs add three additional pragmas to SSIs. Which just dumps out the envrionment. Note: Apache 1.2 or better. Which you may or may not find interesting. But more importantly, XSSIs include conditional html. Let me repeat that. XSSIs provide conditional html! Yes, you can detect whether I'm using Netscape or IE4 and display a different page for each of them without writing cgi scripts, JavaScripts or Jscripts, JavaApplets or ActiveX controls. Now a message from the author. Test condition true if t...
jlk.net
Other Configuration Options for Beginners!
http://www.jlk.net/apache/beginning_others.shtml
ServerAdmin: Your address, where problems with the server should be # e-mailed. ServerAdmin you@your.address. By default your access and error log files and the Apache process id live in the ./apache/logs directory. Some operating systems such as BSDI have a central repository of system log files or system process ids. You can control where your log files and the Apache process id are stored with the following directives. Getting Started with CGI scripts. Tell us what you think!
jlk.net
Configuring SSIs in Apache
http://www.jlk.net/apache/configuring_ssi.shtml
To enable Apache SSIs, edit access.conf. Note that "MultiViews" must be named *explicitly* - - "Options All" # doesn't give it to you (or at least, not yet). Options Indexes FollowSymLinks ExecCGI Includes. Then edit srm.conf. And uncomment the AddType. To use server-parsed HTML files AddType text/html .shtml AddHandler server-parsed .shtml. File extension is only a convention. Your SSIs file can have any extension, including .html. You might also consider adding index.shtml. Directive in srm.conf.
jlk.net
Apache RTFM! All Beginners Sections
http://www.jlk.net/apache/all_beginners.shtml
So you have downloaded Apache for your OS. Where do you install it? Some suggestions for Unix users are:. The choice is yours. For security reasons. Don't install it in / or in /etc. If you do, you could make a mistake in the configuring Apache and allow access to your system configuration files. Deciding where to locate Apache and its configuration files is still a problem if you are installing Apache from the source code. Apache httpd binary location(s). Opt file system layout. To run Apache on your sy...
jlk.net
Testing CGI
http://www.jlk.net/apache/testing_cgi.shtml
Here is a simple shell script which I always use when I first set up a new web server. It prints out some of the CGI environment variables and gives you a warm feeling that everything is working. Cut and past this file into your favorite editor and save it in your CGI directory as testcgi. Make sure to set the execute permissions on it (Unix). And an NT version which is not quit as good, but give you most of the information. I would appreciate an e-mail. NT users should save this file as testcgi.bat.
jlk.net
RTFM Acknowledgements
http://www.jlk.net/apache/thanks.shtml
Firstly, many thanks to the Apache. Group for bringing us "The world's most popular web server"! I originally developed the Apache RTFM when I was running jlk Consultants ltd. When I joined FinanceMedia Europe Ltd. in 1999, I found that I didn't have time to maintain it, and eventually I had to shutdown the website that hosted the RTFM. But it's back now and hosted by Open Source Migrations Ltd. a new company that I am part of. The logo on the Apache RTFM. Are derived from original Apache logos.
jlk.net
Including file with SSIs
http://www.jlk.net/apache/include_ssi.shtml
SSI directive allows you to:. But what does this do for me? With SSIs and include. You can set up a standard template for you web pages which could (suggestion) include. A set of navigation buttons. Well it is if you decide to change you "house style" and you have 50, a 100, or 1000 html document which you need to edit. If you had used include. You could make the change by editing:. Your standard header include file. Your navigation buttons include file. Your standard footer include. You can imply from t...