Am 30.07.2011 11:52, schrieb Mario Brandt:
> ja das geht. IfDefine[1] ist dein Freund.
> --- httpd.conf ---
> <IfDefine workstation>
> Include "conf/ssl.conf-workstation"
> </IfDefine>
> <IfDefine !workstation>
>  Include "conf/ssl.conf-srv"
> </IfDefine>
> --- /httpd.conf ---
> 
> Auf deiner workstation müßtest Du dann den apache mit httpd
> -Dworkstation starten.
> 
> Den -D Parameter könntest Du ja in deinem shell script setzen bzw. nicht 
> setzen

Perfekt, schade nur dass in "/etc/sysconfig/httpd" scheinbar keine
Variablen akzeptiert werden weil ein $HOSTNAME steht dann im "ps aux"
genauso drinnen - Aber Ziel erreicht /etc/httpd/conf/ kann zwischen
den beiden Rechnern genauso abgeglichen werden wie Daten

cat /etc/sysconfig/httpd
# Configuration file for the httpd service.

# To pass additional options (for instance, -D definitions) to the
# httpd binary at startup, set OPTIONS here.
#
OPTIONS="-D workstation"
_____________

httpd.conf:

# SSL-Konfiguration je nach Maschine einbinden
<IfDefine workstation>
 Include "conf/ssl.conf-workstation"
</IfDefine>
<IfDefine srv-rhsoft>
 Include "conf/ssl.conf-srv"
</IfDefine>

Attachment: signature.asc
Description: OpenPGP digital signature

Antwort per Email an