# ./configure --with-apache=../apache_1.3.36 --with-ssl=SYSTEM --prefix=/usr/local/apache --enable-module=most --enable-module=mmap_static --enable-module=so --enable-shared=ssl --disable-rule=SSL_COMPAT --server-uid=www --server-gid=www --enable-suexec --suexec-caller=www --suexec-uidmin=500 --suexec-gidmin=500
-------------------------
# /usr/local/apache/bin/apachectl startssl
-------------------------
# /usr/local/apache/bin/apacectl start
-------------------------
# grep suexec /usr/local/apache/logs/error_log
[Thu Jan  1 16:48:17 2004] [notice] suEXEC mechanism enabled (wrapper: 
/usr/local/apache/bin/suexec)
-------------------------
<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch Includes ExecCGI
    <Limit GET POST OPTIONS PROPFIND>
        Order allow,deny
        Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS PROPFIND>
        Order deny,allow
        Deny from all
    </LimitExcept>
</Directory>
-------------------------
AddHandler cgi-script .cgi
-------------------------
# /usr/local/apache/bin/apachectl restart
-------------------------
#!/bin/sh

echo -e "Content-Type: text/plain\r\n\r\n"
/usr/sbin/id
-------------------------
uid=80(www) gid=80(www) groups=80(www)
-------------------------
$ mkdir public_html && chmod 711 ~/ ~/public_html
$ cp /usr/local/apache/cgi-bin/suexec-test.cgi ~/public_html
-------------------------
uid=500(andrew) gid=500(andrew) groups=500(andrew)
-------------------------
<VirtualHost>
    User mj_uytkownik
    Group moja_grupa
    DocumentRoot /usr/local/apache/htdocs/mj_orodek
    ...
</VirtualHost>
-------------------------
$ ./configure --with-ssl=SYSTEM --prefix=/usr/local/apache2 --enable-module=most --enable-module=mmap_static --enable-module=so --enable-ssl --enable-suexec --with-suexec-caller=daemon --with-suexec-uidmin=500 --with-suexec-gidmin=500
-------------------------
#Include conf/extra/httpd-ssl.conf
-------------------------
SSLCertificateFile /usr/local/apache2/conf/server.crt
SSLCertificateKeyFile /usr/local/apache2/conf/server.key
-------------------------
# /usr/local/apache2/bin/apachectl start
