85 lines
3.9 KiB
TeX
85 lines
3.9 KiB
TeX
|
% master: apache1.3.tex
|
||
|
% Apache 1.3 und SSL v0.1
|
||
|
% 2011-06-01 (Rx)
|
||
|
|
||
|
\subsection{Apache 1.3 und SSL}
|
||
|
%------------------------------
|
||
|
\begin{verbatim}
|
||
|
cd /usr/local/src Verzeichnis wechseln
|
||
|
tar xvfz apache_1.3.31.tar.gz Quelldateien entpacken
|
||
|
tar xvfz mod_ssl-2.8.19-1.3.31.tar.gz Quelldateien entpacken
|
||
|
cd apache_1.3.31 in das Quelldatei-Verzeichnis wechseln
|
||
|
./configure --help Hilfe zu den möglichen Optionen
|
||
|
cd ../mod_ssl-2.8.19-1.3.31
|
||
|
./configure --help Hilfe zu den möglichen Optionen
|
||
|
./configure --with-apache=../apache_1.3.31
|
||
|
--with-ssl=../openssl-0.9.7d
|
||
|
--prefix=/usr/local/apache/1.3.31
|
||
|
--datadir=/srv/www
|
||
|
--enable-module=most
|
||
|
--enable-shared=max
|
||
|
--enable-module=ssl
|
||
|
cd ../apache_1.3.31 in das Quelldatei-Verzeichnis wechseln
|
||
|
make Programm herstellen
|
||
|
make certificate TYPE=custom Zertifikat erzeugen
|
||
|
\end{verbatim}
|
||
|
|
||
|
\subsubsection{Angaben zu der Certificate Authority}
|
||
|
%---------------------------------------------------
|
||
|
\begin{verbatim}
|
||
|
Signature Algorithm ((R)SA or (D)SA) [R]:R
|
||
|
1. Country Name (2 letter code) [XY]:DE
|
||
|
2. State or Province Name (full name) [Snake Desert]:Niedersachsen
|
||
|
3. Locality Name (eg, city) [Snake Town]:Salzgitter
|
||
|
4. Organization Name (eg, company) [Snake Oil, Ltd]:Komtek
|
||
|
5. Organizational Unit Name (eg, section) [Certificate Authority]:CA
|
||
|
6. Common Name (eg, CA name) [Snake Oil CA]:Komtek CA
|
||
|
7. Email Address (eg, name@FQDN) [ca@snakeoil.dom]:ca@komtek.de
|
||
|
8. Certificate Validity (days) [365]:365
|
||
|
Certificate Version (1 or 3) [3]:3
|
||
|
\end{verbatim}
|
||
|
|
||
|
\subsubsection{Angaben zum Serverzertifikat}
|
||
|
%-------------------------------------------
|
||
|
\begin{verbatim}
|
||
|
1. Country Name (2 letter code) [XY]:DE
|
||
|
2. State or Province Name (full name) [Snake Desert]:Niedersachsen
|
||
|
3. Locality Name (eg, city) [Snake Town]:Salzgitter
|
||
|
4. Organization Name (eg, company) [Snake Oil, Ltd]:Komtek
|
||
|
5. Organizational Unit Name (eg, section) [Webserver Team]:Webmaster
|
||
|
6. Common Name (eg, FQDN) [www.snakeoil.dom]:www.komtek.de
|
||
|
7. Email Address (eg, name@fqdn) [www@snakeoil.dom]:www@www.komtek.de
|
||
|
8. Certificate Validity (days) [365]:365
|
||
|
Certificate Version (1 or 3) [3]:3
|
||
|
\end{verbatim}
|
||
|
|
||
|
\subsubsection{Schlüssel verschlüsseln}
|
||
|
%--------------------------------------
|
||
|
\begin{verbatim}
|
||
|
Encrypt the private key now? [Y/n]: n
|
||
|
Encrypt the private key now? [Y/n]: n
|
||
|
|
||
|
su als root anmelden
|
||
|
make install
|
||
|
groupadd wwwadmin Gruppe wwwadmin anlegen
|
||
|
chown -R nobody:wwwadmin /srv/www Rechte für das www-Verzeichnis setzen
|
||
|
ln -s /usr/local/apache/1.3.31 /usr/local/apache/current
|
||
|
Link zu Apache 1.3
|
||
|
ln -s /usr/local/apache/current/conf /etc/apache
|
||
|
Link zu den Konfigurationen
|
||
|
ln -s /usr/local/apache/current/logs /var/log/apache
|
||
|
Link zu den Logdateien
|
||
|
ln -s /usr/local/apache/current/bin/apachectl /usr/local/bin
|
||
|
Link zu apachectl
|
||
|
ln -s /usr/local/apache/current/bin/apachectl /etc/init.d/apache
|
||
|
Link zu den Startdateien
|
||
|
cd /etc/rc5.d in den Start-Runlevel wechseln
|
||
|
ln -s ../init.d/apache S20apache Link zum automatischen Starten
|
||
|
cd ../rc0.d in den Stopp-Runlevel wechseln
|
||
|
ln -s ../init.d/apache K20apache Link zum automatischen Beenden
|
||
|
cd ../rc6.d in den Start-Runlevel wechseln
|
||
|
ln -s ../init.d/apache K20apache Link zum automatischen Beenden
|
||
|
exit root abmelden
|
||
|
\end{verbatim}
|
||
|
|