guide - web space

Web Space

Apache Web Daemon Reference

This is the software that powers tamos.net. This is the complete reference from the Apache developers.

your web directory

Every user can have a web directory called html in their home directory. Any files put into this directory will be available to anyone on the web at large from http://www.tamos.net/~username/. Before that can happen, the file permissions on your home directory must be changed in order give access to the web daemon. This is accomplished by typing "chmod go+x ~/.".

directory indexing

By default, an index is generated every time someone enters a directory. To override that behavior, there are a couple things you can do. You could create a file that is displayed instead of the generated index. The name of the file can be any of the following: index.html, index.htm, default.html, default.htm. There are others, but they are handled differently by the web server. The other way is to turn off the indexing completely. This is done by creating a .htaccess file in a directory where you want to turn off the indexing. The line Options -Indexes will effectively turn off indexing. The settings made in a .htaccess file are inherited by all other directories underneath that directory. So, if you want to turn on indexing in a lower directory, you would create a .htaccess file in that directory with Options +Indexes.

personal cgi scripts

You can run cgi scripts from any directory granted the script is suffixed by .cgi. You will probably have to create a .htaccess file in your directory with a line like Options +ExecCGI. Another thing to keep in mind is that if you're using perl, the correct path to the perl executable is /usr/bin/perl. (not /usr/local/bin/perl like a lot of scripts are setup for.) Also, Tamos.net does not use cgi-lib. Instead, I'd rather you use CGI.pm.