 2010/09/09
|
Last update 1999/01/19
 The Labs - Design & Functionality For The NetHTTP Papers and Server Infos
What would be the world-wide-web without it's hundred thousands of
servers providing the documents, images and all other stuff on demand,
the HTTP-daemons.
- Papers
- Apache
- Features
- Servers
- Further Resources
404.html

| | To make write your own 404-File Not Found page just put this line into your
root .htaccess:
|
ErrorDocument 404 /404.html
|
Within your 404.html make sure you put <base href="..."> at
the beginning in case you reference pictures in your 404.html and you
want them to be referenced properly.
|
Make CGI as Dir

| | access.conf:
|
<Directory />
|
|
Options Indexes FollowSymLinks ExecCGI
|
|
AllowOverride None
|
|
</Directory>
|
|
|
|
AllowOverride AuthConfig
|
|
|
|
<Location /Members>
|
|
SetHandler cgi-script
|
|
order allow,deny
|
|
allow from all
|
|
</Location>
|
/Member is a cgi (perl), for the users or search-engines it will
look like it's a directory: http://yourserver.com/Members/SomeMore/Dirs/test.html
within the CGI you have PATH_INFO environment-variable "/SomeMore/Dirs/test.html" then.
In case you like to have / (root) of the web-server wrapped through
a CGI or perl-script then use http.conf:
|
DocumentRoot /your/path/html/my-script
|
|
<Location />
|
|
SetHandler perl-script
|
|
PerlHandler Apache::PerlRun
|
|
Options +ExecCGI
|
|
PerlSendHeader On
|
|
</Location>
|
Assuming you have mod_perl compiled with apache. The
start-up may complain that my-script is not existant, but that's
not true, as apache expects a directory, but you provide a
script for it.
|
Inline Perl

| | Since mod_perl was released
several packages where written to provide embedded or inline perl:
|

Hipocrisy of the finest: "I agree that no single company can create all the hardware and software. Openness is central because it's the foundation of choice." -- Steve Balmer (Microsoft) blaming Apple regarding iPhone, February 18, 2009Last update 1999/01/19 
All Rights Reserved - (C) 1997 - 2009 by The Labs.Com |