<Directory "/usr/local/apache/htdocs/htsys">
SetHandler application/x-httpd-php
php_value upload_max_filesize 6000000
</Directory>
<Directory "/usr/local/apache/htdocs/lom">
SetHandler application/x-httpd-php
</Directory>
Setting the maximum size for uploading files is not required, if the default of 1MB is sufficient for your application.
In order to make hypertext objects in the database directly accessible by specifying its name in the URL, it is required to turn rewriting on. Any URL of the form http://host/xxxx needs to be rewritten to http://host/htsys/HyperText/xxxx. In order to prevent rewriting of URLs pointing to images or other PHP scripts needed by application of the hypertext system, those URLs which start with /htsys, /htsys_images, /lom, or /lom_images (or whatever names you have chosen) need to be taken out. At the following to your httpd.conf.
RewriteLog "/usr/local/apache/logs/rewrite.log" RewriteEngine on RewriteRule ^/htsys/(.*) /usr/local/apache/htdocs/htsys/$1 [L] RewriteRule ^/htsys_images/(.*) /usr/local/apache/htdocs/htsys_images/$1 [L] RewriteRule ^/icons/(.*) /usr/local/apache/icons/$1 [L] RewriteRule ^/info /usr/local/apache/info [L] RewriteRule ^/lom/(.*) /usr/local/apache/htdocs/lom/$1 [L] RewriteRule ^/lom_images/(.*) /usr/local/apache/htdocs/lom_images/$1 [L] RewriteRule ^/(.*) /usr/local/apache/htdocs/htsys/HyperText/$1 [L] RewriteRule ^(.*) /usr/local/apache/htdocs/htsys/HyperText/$1 [L]
You may want to exclude further URLs from rewriting if you want to serve other documents on the web server. Place those documents in a directory and add a rule like the following.
RewriteRule ^/xxxx/(.*) /usr/local/apache/xxxx/$1 [L]
xxxx stands for the name of the directory containing the documents. Just keep in mind that any document in the hypertext system cannot be accessed if it is shadowed by a document on the web server. The fourth rule in the above configuration is such a rule which prevents access on a document with the name info in the hypertext system.