Each of Apache’s locations can also be set individually, including a few rare ones that aren’t (at least, as yet) permitted in the layout. The list of available options, with their defaults in the Apache layout, is detailed in Table 3-5. Table 3-5. Configuration Directives Relating to Locations
Table 3-5. Configuration Directives Relating to Locations (Continued)
Table 3-5. Configuration Directives Relating to Locations (Continued)
When considering this list, it’s worth remembering that the directory organization is actually an artifact of the layout definitions in config.layout and not an implicit default; there’s nothing that automatically decides that the bin and sbin directories are under EPREFIX. The same is true for DATADIR and LOCALSTATEDIR—both define paths that are only used as the basis for the default values of other options in config.layout. If you create your own layout that doesn’t make use of them, they have no significance. You can also combine a layout configuration with an individual location option. The configure script reads the layout first and then overrides it with individual options. For example, you can explicitly request the Apache layout and then override the sbin directory so it’s different from the normal bin directory: [1.3] $ ./configure --with-layout=Apache --sbindir=/usr/local/apache/sbin As a final trick, you can actually use the variables in the layout definition as part of individual location options. For example, the --exec_prefix option can be accessed with $exec_prefix. You need to escape the dollar to prevent the shell from trying to evaluate it, so the second command in the previous code could be written more flexibly as this: $ ./configure --enable-layout=Apache --sbindir=\$exec_prefix/sbin You can do this for any of the values defined in config.layout, which allows you to customize any predefined layout without editing it. To check that you’ve got everything right, use the --show-layout option: $ ./configure --enable-layout=Apache --sbindir=\ $exec_prefix/sbin --show-layout This also has the benefit of providing the names of the values you can use in your own modifications (by prefixing them with a $).
blog comments powered by Disqus | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||