>telnet fi.muni.cz 80
Trying 147.251.48.1...
Connected to fi.muni.cz.
Escape character is '^]'.
GET /~kas/p090 HTTP/1.1
Host: www.fi.muni.cz
User-Agent: telnet:)
Accept-Charset: UTF-8
HTTP/1.1 301 Moved Permanently
Date: Mon, 10 Nov 2008 16:49:10 GMT
Server: Apache/2.0.59 (Unix) mod_auth_kerb/5.3 mod_fastcgi/mod_fastcgi-SNAP-0404142202 mod_ssl/2.0.59 OpenSSL/0.9.8
Location: http://www.fi.muni.cz/~kas/p090/
Content-Length: 240
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://www.fi.muni.cz/~kas/p090/">here</a>.</p>
</body></html>
Connection closed by foreign host.
ServerRoot "/etc/httpd"
PidFile run/httpd.pid
Timeout 120
Listen 80
LoadModule auth_basic_module modules/mod_auth_basic.so
Include conf.d/*.conf
User apache
Group apache
ServerAdmin root@localhost
ServerName www.example.com:80
DocumentRoot "/home/milos/public_html"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/home/milos/public_html">
Options Indexes FollowSymLinks ExecCGI
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
DirectoryIndex index.html index.html.var
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
AddDefaultCharset UTF-8
LoadModule ssl_module modules/mod_ssl.so
Listen 443
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
SSLPassPhraseDialog builtin #nebo exec:/path/to/program
<VirtualHost _default_:443>
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/localhost.cert
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
</VirtualHost>
LoadModule cgi_module modules/mod_cgi.so
ScriptAlias /cgi-bin/ "/home/milos/public_html/cgi-bin/"
AddHandler cgi-script .cgi
Options FollowSymLinks +ExecCGI
DirectoryIndex index.cgi
"AddDefaultCharset UTF-8"
. Není-li uvedeno, nic se nepošle a je tím "vynuceno" použití HTTP-EQUIV. Zajímavá je možnost, aby server zpracovával HTTP-EQUIV (Apache nedělá, ostatní nevím) -- ve standardu HTML 2.0 [5] je výslovně uvedeno, že "server may use this information to process the document", v HTML 4.1 [6] pak dokonce "HTTP servers use this attribute to gather information for HTTP response message headers."
(v httpd.conf)
AddExternalAuth slunce /home/milos/bin/auth.php
SetExternalAuthMethod mojeauth pipe
(v .htaccess)
AuthType Basic
AuthName "Prosim prihlaste se."
AuthBasicProvider external
AuthExternal mojeauth
require valid-user