![]() |
![]() Composed componentA Composed component is a graphical container component which displays a list and which can contain other components. This component is useful for options requiring a bloc definition such as directory, location and virtual hosts options. (screenshot)
A composed component is characterized by a
Then follows a
The
<VirtualHost www.essi.fr> DocumentRoot /www/docs <Directory /www/cgi-bin> Options ExecCGI </Directory> </VirtualHost> Example : BEGIN COMPONENT TITLE: Virtual hosts BEGIN COMPOSED BEGIN DESCRIPTION LABEL: Virtual host ID: %arg1 END DESCRIPTION ### beginning of a text component BEGIN COMPONENT TITLE: Properties BEGIN TEXT LABEL: Server admin (email) : ID: %arg1 LABEL: Document root : ID: %arg2 LABEL: Error log : ID: %arg3 LABEL: Transfer log : ID: %arg4 END TEXT BEGIN GENERATE httpd.conf ServerAdmin %arg1 DocumentRoot %arg2 ErrorLog %arg3 TransferLog %arg4 END GENERATE END COMPONENT ### Beginning of a text component BEGIN COMPONENT TITLE: Server name BEGIN TEXT LABEL: Server name : ID: %arg1 END TEXT BEGIN GENERATE httpd.conf ServerName %arg1 END GENERATE END COMPONENT END COMPOSED BEGIN GENERATE httpd.conf BEGIN HEAD <VirtualHost %arg1> END HEAD BEGIN TAIL </VirtualHost> END TAIL END GENERATE END COMPONENT |