Apache is highly configurable and also a very complicated piece of software. Each user should configure and build his "own" server, that suits best for the specific needs. This page gives you some ideas, how to create your own package for CRUX.
A comprehensive paper howto configure apache and many of it's modules can be found here.
If you only need a fast server for your home-network or even small puplic web pages, I recommend the use of webfs (opt/webfs). Thttpd-php (contrib/thttpd-php) is the right choice if you need also PHP and extended CGI support. Both of them need a minimum of configuration and system resources, and don't cluster your harddisk with a lot of files.
If you created ports for other specialized servers or even modules for apache, I would be happy to include them here.
Locate the lines where modules will be loaded, and append the following lines to the appropriate places:
LoadModule php4_module lib/apache/libphp4.so |
Add the php mime type:
AddType application/x-httpd-php .php |
Finally you must extend the index list. Change the DirectoryIndex line to:
DirectoryIndex index.html index.html.var index.php index.php3
|
To verify the PHP installation you can download this test page and rename it to test_php.php.
A very good guide how to configure apache for mod_ruby can be found here. With the following simple configuration all *.rhtml files will be parsed by eruby:
|
After installation you have to create a self-signed SSL-certificate:
# openssl req -new > my.csr # openssl rsa -in privkey.pem -out my.key # openssl x509 -in my.csr -out my.cert -req -signkey my.key -days 999 # cp my.key /etc/apache/ssl.key/server.key # cp my.cert /etc/apache/ssl.crt/server.crt |
Locate the lines where modules will be loaded, and append the following lines to the appropriate places:
LoadModule php4_module lib/apache/libphp4.so |
Add the php mime type. Locate the line <IfModule mod_mime.c> and insert somewhere after that line:
AddType application/x-httpd-php .php |
Finally you must extend the index list. Locate the line <IfModule mod_dir.c>. Change the DirectoryIndex line to:
DirectoryIndex index.html index.htm index.php index.php3
|
To verify the PHP installation you can download this test page and rename it to test_php.php. If you change your server, e.g. from "apache" to "apache-perl-ssl" you must rebuild this module.
After installation you have edit the configuration file /etc/httpd.conf of apache to enable this module. Locate the lines where modules will be loaded, and append the following lines to the appropriate places:
LoadModule dav_module lib/apache/libdav.so |
Add the following line within the 'Main server configuration' section:
DAVLockDB /tmp/DAVLock
|
Now you are ready to put a 'DAV On' statement within a <Directory>
or <Location> directive.
For example:
|
gives all users, registered in /etc/apache/passwords, read/write access to your public directory. You can restrict this more with the usual apache directives. This directory must be owned by the effective user/group, e.g. nobody/nobody, apache is running to allow write access.
The access to a WebDAV enabled apache is much like ftp. A CRUX port for the commandline WebDAV cadaver is available. The sitecopy utility works also, besides ftp, with a WebDAV enabled http servers. See the above informations about downloading this ports.
Last modified: Mon Sep 08 13:03:45 CEST 2003 | |
Copyright © 2002 by Jürgen Daubert |