Intro to Apache - ApacheCon
Include directories
  • You can also include a directory, and all files in that directory and subdirectories will be parsed as configuration files.

    
      Include /etc/httpd/
    
      

  • Be careful about things that need to load in a particular order.

  • Files are loaded in ls order (alphabetical)

  • Useful for virtual hosting environments, where you want to keep the various hosts separate to reduce confusion.

    
      Include conf/vhosts/
    
      

  • Or, as is now recommended in the docs:

    
        Include conf/vhosts/*.conf
    
      

  • Path is relative to ServerRoot

Index
Back to Include files
Forward to Configuring cont'd: Directives

ApacheCon : Intro to Apache - Slide #62 of 139